﻿---
name: company-excel-audit-standard
description: Use this skill when checking, reviewing, auditing, or validating Excel workbooks against company standards for formatting, tables, formulas, references, text quality, spacing, line breaks, spelling, and merged cells. This skill must warn only and must not modify the workbook.
---

# Company Excel Audit Standard

## Purpose

This skill is used to review Excel workbooks against company standards.

The purpose is to warn the user about potential issues only.

Copilot must not edit, clean, reformat, delete, replace, unmerge, rename, convert, or change any workbook content unless the user explicitly gives a separate instruction to modify the workbook.

## Core Rule: Warning Only

When using this skill:

- Inspect the workbook, worksheet, table, formulas, formatting, and visible text
- Report issues found
- Explain why each issue may cause problems
- Recommend what the user should fix
- Do not make changes automatically
- Do not silently clean data
- Do not silently correct formulas
- Do not silently change formatting
- Do not silently correct spelling
- Do not unmerge cells automatically
- Do not convert ranges to Excel Tables automatically
- Do not rename Excel Tables automatically
- Do not remove Alt+Enter line breaks automatically
- Do not remove leading spaces, trailing spaces, or repeated spaces automatically
- Do not change any business-critical text such as codes, IDs, names, product numbers, customer numbers, or document numbers

The output must be an audit report only.

## Human Review Rule

Copilot must remind the user that the audit report is a recommendation.

The user should review and verify all findings before changing any official workbook, especially workbooks used for:

- Finance
- Legal
- Compliance
- Management reporting
- Customer reporting
- Human resources
- Operations
- Any business-critical decision

## Audit Output Format

After checking the workbook, provide a report with these sections:

1. Summary
2. Formatting standard issues
3. Table and data structure issues
4. Formula and reference issues
5. Text spacing issues
6. Alt+Enter line break issues
7. Merged cell issues
8. Spelling or wording issues
9. Priority assessment
10. Recommended actions

If no issues are found, state:

"No issues were found based on the current company Excel audit standard."

## Recommended Report Style

Use this report format:

### Excel Audit Report

#### 1. Summary

Briefly summarize the overall condition of the workbook.

#### 2. Issues Found

List issues by category.

For each issue, include where possible:

- Issue type
- Worksheet name
- Range, column, table, or formula location
- Why it may cause problems
- Recommended action
- Reminder that no change was made

#### 3. Priority

Classify issues as:

- High: May affect formulas, lookup, PivotTables, reports, dashboards, or analysis
- Medium: May affect maintainability, consistency, data quality, or workbook structure
- Low: Mainly formatting, readability, spelling, or wording consistency

#### 4. Recommended Next Steps

Recommend what the user should review or fix manually.

## Priority Guidance

### High Priority

Use High Priority for:

- Merged cells in data areas
- Merged cells inside Excel Tables
- Full-column formula references
- VLOOKUP or HLOOKUP in important lookup formulas
- SUMIF used where SUMIFS is preferred
- Alt+Enter inside structured data tables
- Leading or trailing spaces in key fields
- Data ranges not formatted as Excel Tables
- Missing or unclear Table Names in formula-driven workbooks
- Raw data mixed with reports or dashboard output
- Mixed data types in key columns

### Medium Priority

Use Medium Priority for:

- Repeated spaces in text
- Suspected non-printing characters
- Non-standard font
- Gridlines turned on
- Borders not dark gray
- Excessive fill colors
- Table headers not bold
- Table headers using fill color
- Data cells using unnecessary fill color
- Blank rows inside data tables
- Raw data mixed with calculation areas

### Low Priority

Use Low Priority for:

- Minor spelling issues
- Minor wording inconsistencies
- Minor layout inconsistencies
- Non-critical formatting differences
- Cosmetic readability issues

## Warning Tone Standard

Use a professional, polite, and helpful tone.

Warnings should not blame the user.

Avoid harsh wording such as:

- "ผิด"
- "ใช้งานไม่ได้"
- "ทำไม่ถูก"
- "ห้ามทำแบบนี้เด็ดขาด"

Prefer constructive wording such as:

- "พบข้อควรตรวจสอบ"
- "อาจทำให้เกิดปัญหา"
- "ควรพิจารณาปรับ"
- "แนะนำให้ตรวจสอบ"
- "มีความเสี่ยงต่อการวิเคราะห์ข้อมูล"

## Final Warning Message Rule

Every warning must end with one of these reminders:

- "Copilot แจ้งเตือนเท่านั้น และยังไม่ได้แก้ไขไฟล์"
- "Copilot รายงานปัญหาเท่านั้น และไม่ได้เปลี่ยนข้อมูล"
- "ควรให้ผู้ใช้ตรวจสอบก่อนตัดสินใจแก้ไข"
- "หากต้องการให้ Copilot แก้ไข ต้องสั่งแยกต่างหากอย่างชัดเจน"

## Standard Warning Message Format

When Copilot finds an issue, use this format:

"พบข้อควรตรวจสอบ: [Issue]  
ตำแหน่งที่พบ: [Worksheet / Range / Table / Formula]  
ผลกระทบที่อาจเกิดขึ้น: [Impact]  
คำแนะนำ: [Recommended Action]  
สถานะ: Copilot แจ้งเตือนเท่านั้น และยังไม่ได้แก้ไขไฟล์"

## Formatting Standard

Check whether worksheets follow these formatting standards:

- Font should be Tahoma
- Font size should be 14
- Font color should be black
- Gridlines should be turned off
- If borders are used, borders should be dark gray
- Avoid excessive colors
- Avoid decorative formatting
- Keep the layout clean and easy to read

If any issue is found, warn the user and identify the affected worksheet, range, table, or area where possible.

Do not change the formatting automatically.

### Example Warning: Font Standard Issue

"พบรูปแบบตัวอักษรที่ไม่เป็นไปตามมาตรฐานบริษัทใน Worksheet: Sales Report ช่วงเซลล์ A1:H30  
มาตรฐานบริษัทกำหนดให้ใช้ Font: Tahoma, Size 14, สีดำ  
ปัญหานี้อาจทำให้รายงานของแต่ละแผนกมีรูปแบบไม่สอดคล้องกัน  
คำแนะนำ: ให้ตรวจสอบและปรับ Font ให้เป็น Tahoma ขนาด 14 สีดำ  
สถานะ: Copilot แจ้งเตือนเท่านั้น และยังไม่ได้แก้ไขไฟล์"

### Example Warning: Gridlines Still Visible

"พบว่า Worksheet: Dashboard ยังเปิด Gridlines อยู่  
มาตรฐานบริษัทกำหนดให้ปิด Gridlines เพื่อให้รายงานอ่านง่ายและดูเป็นทางการ  
คำแนะนำ: ให้ปิด Gridlines ก่อนส่งรายงานหรือใช้เป็น Dashboard  
สถานะ: Copilot ไม่ได้เปลี่ยนการตั้งค่า Gridlines ให้อัตโนมัติ"

### Example Warning: Border Color Issue

"พบการใช้เส้นขอบที่ไม่เป็นไปตามมาตรฐานบริษัทใน Worksheet: Report  
มาตรฐานบริษัทกำหนดให้ใช้เส้นขอบสีเทาเข้มเมื่อจำเป็นต้องตีกรอบเซลล์  
การใช้เส้นขอบหลายสีหรือเส้นขอบตกแต่งมากเกินไปอาจทำให้รายงานอ่านยากและไม่เป็นมาตรฐานเดียวกัน  
คำแนะนำ: ตรวจสอบเส้นขอบในพื้นที่รายงาน และปรับให้เรียบง่ายเมื่อเหมาะสม  
สถานะ: Copilot แจ้งเตือนเท่านั้น และยังไม่ได้แก้ไขไฟล์"

## Table Formatting Standard

Check all data ranges and tables.

Company standard:

- Data ranges should be converted into Excel Tables
- Excel Tables should be used for structured data
- Tables should have meaningful Table Names
- Table headers should use bold font
- Table headers should not use fill color
- Data cells should not use fill color
- Tables should avoid unnecessary styling
- Tables should not contain blank rows inside the table
- One row should represent one record
- One column should represent one field

If a normal range appears to be structured data but is not an Excel Table, warn the user.

Do not convert the range to a Table automatically.

### Example Warning: Data Range Not Converted to Table

"พบช่วงข้อมูลที่ดูเหมือนเป็นตารางข้อมูล แต่ยังไม่ได้แปลงเป็น Excel Table ใน Worksheet: RawData ช่วง A1:F500  
การไม่ใช้ Excel Table อาจทำให้สูตร, PivotTable, Filter และ Copilot วิเคราะห์ข้อมูลได้ไม่เต็มประสิทธิภาพ  
คำแนะนำ: ควรแปลงช่วงข้อมูลนี้เป็น Excel Table และตั้งชื่อ Table ให้สื่อความหมาย  
สถานะ: Copilot แจ้งเตือนเท่านั้น และยังไม่ได้แปลงข้อมูลเป็น Table"

### Example Warning: Missing or Unclear Table Name

"พบ Excel Table ที่ยังใช้ชื่อทั่วไป เช่น Table1 หรือ Table2  
ชื่อ Table ที่ไม่สื่อความหมายอาจทำให้สูตรอ่านยาก และดูแลไฟล์ต่อได้ยาก  
คำแนะนำ: ควรตั้งชื่อ Table ให้สื่อถึงข้อมูล เช่น SalesData, CustomerList หรือ ExpenseTable  
สถานะ: Copilot ไม่ได้เปลี่ยนชื่อ Table ให้อัตโนมัติ"

### Example Warning: Header Row Not Bold

"พบหัวตารางที่ไม่ได้ใช้ตัวหนา  
มาตรฐานบริษัทกำหนดให้หัวตารางใช้ Font Bold เพื่อให้แยกจากข้อมูลทั่วไปได้ชัดเจน  
คำแนะนำ: ตรวจสอบหัวตารางและปรับให้เป็นตัวหนาเมื่อเหมาะสม  
สถานะ: Copilot ไม่ได้เปลี่ยนรูปแบบให้อัตโนมัติ"

### Example Warning: Header or Data Cells Have Fill Color

"พบการใช้สีพื้นในหัวตารางหรือเซลล์ข้อมูล  
มาตรฐานบริษัทกำหนดให้หัวตารางและเซลล์ข้อมูลไม่ต้องใส่สีพื้น โดยหัวตารางให้ใช้ Font Bold แทน  
การใช้สีพื้นมากเกินไปอาจทำให้ไฟล์ดูไม่เป็นมาตรฐาน และทำให้ผู้ใช้เข้าใจผิดว่าสีมีความหมายพิเศษ  
คำแนะนำ: ตรวจสอบว่าสีพื้นนั้นจำเป็นหรือไม่  
สถานะ: Copilot ยังไม่ได้ลบสีพื้นออก"

### Example Warning: Blank Rows Inside Table

"พบแถวว่างภายในพื้นที่ตารางข้อมูล  
แถวว่างอาจทำให้ Excel หรือ Copilot เข้าใจขอบเขตข้อมูลผิด และอาจกระทบต่อ PivotTable, Formula และ Filter  
คำแนะนำ: ควรลบแถวว่างออกจากกลางตาราง หรือแยกส่วนข้อมูลให้ชัดเจน  
สถานะ: Copilot ไม่ได้ลบแถวว่างให้อัตโนมัติ"

## Table Name and Structured Reference Standard

Check formulas and data models for references.

Company standard:

- Use Table Names when referring to data in formulas
- Use Structured References instead of ordinary cell references when working with Tables
- Prefer readable formulas that refer to fields by name

Preferred example:

=SUM(SalesData[Amount])

Avoid examples:

=SUM(C:C)

=SUM(C2:C500)

=A1+B1+C1

If formulas do not use Table Names or Structured References where appropriate, warn the user.

Do not rewrite formulas automatically.

### Example Warning: Formula Not Using Structured References

"พบสูตรที่อ้างอิงเซลล์หรือช่วงข้อมูลแบบปกติ แทนการใช้ Table Name หรือ Structured References  
ตัวอย่างปัญหา: =SUM(C2:C500)  
หากข้อมูลเพิ่มขึ้น สูตรอาจไม่ครอบคลุมข้อมูลใหม่  
คำแนะนำ: หากข้อมูลอยู่ใน Excel Table ควรใช้รูปแบบเช่น =SUM(SalesData[Amount])  
สถานะ: Copilot ยังไม่ได้แก้ไขสูตร"

## Formula Standard

Check whether formulas follow company standards.

### Lookup Formula Standard

Company standard:

- Use XLOOKUP instead of VLOOKUP
- Use XLOOKUP instead of HLOOKUP where appropriate

Warn if formulas use:

=VLOOKUP()

=HLOOKUP()

Recommend using:

=XLOOKUP()

Do not replace formulas automatically.

### Example Warning: VLOOKUP Found

"พบการใช้สูตร VLOOKUP ในไฟล์นี้  
มาตรฐานบริษัทแนะนำให้ใช้ XLOOKUP แทน เพราะอ่านง่ายกว่า ยืดหยุ่นกว่า และลดข้อจำกัดเรื่องตำแหน่งคอลัมน์  
คำแนะนำ: ตรวจสอบว่าสูตรนี้สามารถเปลี่ยนเป็น XLOOKUP ได้หรือไม่  
สถานะ: Copilot ยังไม่ได้เปลี่ยนสูตร VLOOKUP ให้อัตโนมัติ"

### Example Warning: HLOOKUP Found

"พบการใช้สูตร HLOOKUP ในไฟล์นี้  
มาตรฐานบริษัทแนะนำให้ใช้ XLOOKUP แทนเมื่อเหมาะสม เพื่อให้สูตรอ่านง่ายและยืดหยุ่นกว่า  
คำแนะนำ: ตรวจสอบว่าสูตรนี้สามารถเปลี่ยนเป็น XLOOKUP ได้หรือไม่  
สถานะ: Copilot แจ้งเตือนเท่านั้น และยังไม่ได้แก้ไขสูตร"

### Conditional Sum Standard

Company standard:

- Use SUMIFS instead of SUMIF

Warn if formulas use:

=SUMIF()

Recommend using:

=SUMIFS()

Do not replace formulas automatically.

### Example Warning: SUMIF Found

"พบการใช้สูตร SUMIF ในไฟล์นี้  
มาตรฐานบริษัทแนะนำให้ใช้ SUMIFS แทน เพื่อให้รองรับเงื่อนไขเดียวและหลายเงื่อนไขในรูปแบบเดียวกัน  
คำแนะนำ: พิจารณาเปลี่ยนเป็น SUMIFS เพื่อให้สูตรเป็นมาตรฐานเดียวกันทั้งองค์กร  
สถานะ: Copilot ยังไม่ได้แก้ไขสูตร"

### Summation Standard

Company standard:

- Use SUM instead of manually adding many cells together

Warn if formulas look like manual cell addition, such as:

=A1+A2+A3+A4+A5

Recommend using:

=SUM(A1:A5)

Do not replace formulas automatically.

### Example Warning: Manual Addition Found

"พบสูตรที่นำเซลล์หลายเซลล์มาบวกกันโดยตรง เช่น =A1+A2+A3+A4+A5  
สูตรลักษณะนี้ดูแลยาก และเสี่ยงตกหล่นเมื่อมีข้อมูลเพิ่ม  
คำแนะนำ: ควรใช้ SUM เช่น =SUM(A1:A5)  
สถานะ: Copilot แจ้งเตือนเท่านั้น และไม่ได้เปลี่ยนสูตร"

## Reference Standard

Check formulas for risky or inefficient references.

Company standard:

- Do not reference entire columns in formulas
- Do not use full-column references in lookup, summary, or calculation formulas
- Prefer Table references or specific bounded ranges

Warn if formulas contain full-column references such as:

=A:A

=B:B

=SUM(C:C)

=XLOOKUP(E2,A:A,B:B)

=COUNTIF(D:D,"Yes")

Recommend using Table references such as:

=SUM(SalesData[Amount])

or bounded ranges such as:

=SUM(C2:C500)

Do not change formulas automatically.

### Example Warning: Full-Column Reference Found

"พบสูตรที่อ้างอิงทั้งคอลัมน์ เช่น =SUM(C:C) หรือ =XLOOKUP(E2,A:A,B:B)  
การอ้างอิงทั้งคอลัมน์อาจทำให้ไฟล์ทำงานช้าลง และเสี่ยงดึงข้อมูลเกินขอบเขตที่ต้องการ  
คำแนะนำ: ควรใช้ Excel Table หรือช่วงข้อมูลที่กำหนดขอบเขตชัดเจน  
สถานะ: Copilot รายงานปัญหาเท่านั้น และไม่ได้เปลี่ยนสูตร"

## Text Spacing Standard

Check text cells for common spacing problems.

Warn if text values contain:

- Leading spaces at the beginning of cell values
- Trailing spaces at the end of cell values
- Repeated spaces between words
- Unnecessary spaces before or after punctuation
- Suspected non-printing characters
- Suspected invisible characters

Explain that hidden spacing problems can affect:

- Sorting
- Filtering
- Lookup formulas
- PivotTables
- Matching data
- Duplicate checking
- Copilot analysis

Recommended cleaning logic:

- Use TRIM to remove leading, trailing, and repeated spaces
- Use CLEAN when non-printing characters are suspected

Important:

- Do not automatically clean spaces
- Do not change names, codes, IDs, product numbers, document numbers, or business-critical text
- Only warn and recommend review

### Example Warning: Leading Spaces Found

"พบข้อความที่มีช่องว่างนำหน้าข้อมูลใน Worksheet: CustomerData  
ช่องว่างนำหน้าอาจทำให้การค้นหา, Filter, XLOOKUP, PivotTable หรือการตรวจข้อมูลซ้ำให้ผลผิดพลาด  
คำแนะนำ: ตรวจสอบข้อมูลในคอลัมน์ที่เกี่ยวข้อง และพิจารณาใช้ TRIM เพื่อทำความสะอาดข้อความ  
สถานะ: Copilot ไม่ได้ลบช่องว่างให้อัตโนมัติ เพราะข้อมูลบางประเภท เช่น รหัสหรือชื่อเฉพาะ อาจมีความหมายทางธุรกิจ"

### Example Warning: Trailing Spaces Found

"พบข้อความที่มีช่องว่างต่อท้ายข้อมูล  
ช่องว่างต่อท้ายมองไม่เห็นด้วยตา แต่ทำให้สูตรเปรียบเทียบข้อความหรือ Lookup หาค่าไม่เจอได้  
คำแนะนำ: ตรวจสอบและทำความสะอาดข้อมูล โดยเฉพาะคอลัมน์ที่ใช้เป็น Key เช่น รหัสลูกค้า รหัสสินค้า หรือชื่อรายการ  
สถานะ: Copilot รายงานปัญหาเท่านั้น และยังไม่ได้แก้ไขข้อมูล"

### Example Warning: Repeated Spaces Found

"พบข้อความที่มีช่องว่างซ้ำระหว่างคำ  
ปัญหานี้อาจทำให้การจับคู่ข้อความ, การค้นหา และการรวมข้อมูลจากหลายแหล่งคลาดเคลื่อน  
คำแนะนำ: ตรวจสอบว่าช่องว่างซ้ำนั้นตั้งใจใช้หรือไม่ หากไม่ตั้งใจ ควรทำความสะอาดด้วย TRIM  
สถานะ: Copilot ยังไม่ได้ปรับข้อความใด ๆ"

### Example Warning: Suspected Non-Printing Characters

"พบข้อความที่อาจมีอักขระแฝงหรืออักขระที่มองไม่เห็น  
ข้อมูลลักษณะนี้อาจเกิดจากการ Copy มาจากระบบอื่น เช่น ERP, Web, PDF หรือ Email  
อาจทำให้สูตรค้นหา, PivotTable หรือการเปรียบเทียบข้อมูลทำงานผิดพลาด  
คำแนะนำ: ตรวจสอบคอลัมน์นี้ และพิจารณาใช้ CLEAN ร่วมกับ TRIM หากเหมาะสม  
สถานะ: Copilot ไม่ได้ลบอักขระใด ๆ โดยอัตโนมัติ"

## Alt+Enter Line Break Standard

Check cells for manual line breaks created by Alt+Enter.

Warn if cells contain line breaks inside the cell.

Explain that Alt+Enter can cause problems with:

- Sorting
- Filtering
- Lookup formulas
- Text matching
- Exporting data
- Power Query
- PivotTables
- Dashboard reporting
- Copilot analysis

Company standard:

- Do not use Alt+Enter inside structured data tables
- If multiple values are stored in one cell, consider separating them into different columns or rows
- If the line break is only for display, consider using Wrap Text instead

Do not remove Alt+Enter line breaks automatically.

### Example Warning: Alt+Enter Line Break Found

"พบการขึ้นบรรทัดใหม่ภายในเซลล์ ซึ่งอาจเกิดจากการใช้ Alt+Enter  
หากอยู่ในตารางข้อมูล อาจทำให้การ Sort, Filter, Lookup, PivotTable, Power Query และ Copilot วิเคราะห์ข้อมูลได้ยากขึ้น  
คำแนะนำ: หากเป็นข้อมูลหลายรายการในเซลล์เดียว ควรพิจารณาแยกเป็นหลายแถวหรือหลายคอลัมน์ หากต้องการแค่แสดงผล อาจใช้ Wrap Text แทน  
สถานะ: Copilot แจ้งเตือนเท่านั้น และไม่ได้ลบ Alt+Enter ออก"

## Merged Cell Standard

Check worksheets for merged cells.

Warn if merged cells are found.

Company standard:

- Do not use Merge Cells in data tables
- Do not use Merge Cells in raw data areas
- Do not use Merge Cells in calculation areas
- Do not use Merge Cells in dashboard source ranges
- Merged cells are not allowed inside Excel Tables
- Use Center Across Selection instead of Merge Cells when visual centering is needed

Explain that merged cells can cause problems with:

- Sorting
- Filtering
- Copying data
- Filling formulas
- PivotTables
- Power Query
- Dashboard preparation
- Copilot analysis

Do not unmerge cells automatically.

### Example Warning: Merged Cells Found

"พบเซลล์ที่ถูก Merge ใน Worksheet: Report  
Merged Cells อาจทำให้เกิดปัญหากับการ Sort, Filter, Copy, Fill Formula, PivotTable, Power Query และการเตรียมข้อมูลสำหรับ Dashboard  
มาตรฐานบริษัทไม่แนะนำให้ใช้ Merge Cells โดยเฉพาะในพื้นที่ข้อมูล ตารางคำนวณ หรือแหล่งข้อมูลของรายงาน  
คำแนะนำ: ใช้ Center Across Selection แทน หากต้องการจัดข้อความให้อยู่กลางพื้นที่  
สถานะ: Copilot ไม่ได้ Unmerge เซลล์ให้อัตโนมัติ"

### Example Warning: Merged Cells Inside Data Area

"พบ Merged Cells ในพื้นที่ที่ดูเหมือนเป็นตารางข้อมูล  
กรณีนี้ถือเป็นความเสี่ยงสูง เพราะอาจทำให้การเรียงข้อมูล กรองข้อมูล อ้างอิงสูตร และสร้าง PivotTable ผิดพลาด  
คำแนะนำ: ควรตรวจสอบโครงสร้างตาราง และหลีกเลี่ยงการ Merge Cells ในข้อมูลดิบ  
สถานะ: Copilot รายงานปัญหาเท่านั้น และยังไม่ได้แก้ไขโครงสร้างไฟล์"

## Spelling and Wording Review Standard

Review visible text for possible spelling, typing, or wording issues.

Check especially:

- Worksheet titles
- Table headers
- Dashboard labels
- Report headings
- Summary comments
- Notes
- Explanation text
- Chart titles
- Axis labels
- Slicer labels

If spelling or wording issues are suspected:

- List the suspected words or phrases
- Suggest corrected wording
- Explain that the user should verify the correction

Important:

- Do not automatically correct spelling
- Do not change proper names
- Do not change abbreviations
- Do not change product names
- Do not change customer names
- Do not change employee names
- Do not change IDs, codes, or technical terms unless clearly instructed by the user

For Thai text:

- Preserve the intended meaning
- Preserve business context
- Avoid changing tone unnecessarily
- Warn only and suggest possible alternatives

### Example Warning: Possible Spelling Issue

"พบข้อความที่อาจสะกดผิดหรือใช้คำไม่สอดคล้องกัน  
ข้อความที่พบ: 'รายงายยอดขาย'  
คำแนะนำที่เป็นไปได้: 'รายงานยอดขาย'  
ควรให้ผู้ใช้ตรวจสอบอีกครั้ง เพราะบางคำอาจเป็นชื่อเฉพาะ ชื่อสินค้า หรือคำย่อภายในองค์กร  
สถานะ: Copilot ไม่ได้แก้ไขตัวสะกดให้อัตโนมัติ"

### Example Warning: Possible Inconsistent Wording

"พบข้อความที่อาจใช้คำไม่สอดคล้องกัน เช่น 'ยอดขายรวม', 'Total Sales', และ 'Sales Amount' ในรายงานเดียวกัน  
การใช้คำหลายแบบอาจทำให้ผู้ใช้รายงานตีความไม่ตรงกัน  
คำแนะนำ: ควรกำหนดคำมาตรฐานสำหรับหัวรายงานและตัวชี้วัด  
สถานะ: Copilot แจ้งเตือนเท่านั้น และยังไม่ได้เปลี่ยนข้อความ"

## Workbook Structure Standard

Check workbook structure where possible.

Company standard:

- Separate raw data, calculation, and dashboard areas
- Raw data should not be mixed with reporting output
- Avoid formulas inside raw data tables unless they are intentional helper columns
- Avoid blank rows inside data tables
- Avoid mixed data types in the same column
- Avoid using formatting to represent data meaning without actual data fields

Warn the user if the workbook structure may create problems.

Do not restructure the workbook automatically.

### Example Warning: Raw Data Mixed with Calculation

"พบว่าพื้นที่ข้อมูลดิบอาจมีสูตรคำนวณหรือสรุปรายงานปะปนอยู่ใน Worksheet เดียวกัน  
การผสม Raw Data, Calculation และ Report Output อาจทำให้ไฟล์ดูแลยาก และเสี่ยงต่อการแก้ไขผิดจุด  
คำแนะนำ: ควรแยก Raw Data, Calculation และ Dashboard ออกเป็นพื้นที่หรือ Worksheet ที่ชัดเจน  
สถานะ: Copilot ไม่ได้ย้ายหรือปรับโครงสร้างไฟล์"

### Example Warning: Mixed Data Types in Same Column

"พบคอลัมน์ที่อาจมีชนิดข้อมูลปะปนกัน เช่น ตัวเลข ข้อความ และวันที่อยู่ในคอลัมน์เดียวกัน  
ข้อมูลชนิดปะปนอาจทำให้สูตร, PivotTable, Sorting, Filtering และ Copilot วิเคราะห์ผลคลาดเคลื่อน  
คำแนะนำ: ตรวจสอบคอลัมน์นี้และกำหนดรูปแบบข้อมูลให้สอดคล้องกัน  
สถานะ: Copilot รายงานปัญหาเท่านั้น และยังไม่ได้เปลี่ยนข้อมูล"

### Example Warning: Formatting Used as Data Meaning

"พบการใช้สีหรือรูปแบบเซลล์เพื่อสื่อความหมายของข้อมูล แต่ไม่พบคอลัมน์ข้อมูลที่อธิบายความหมายนั้นอย่างชัดเจน  
ตัวอย่างเช่น ใช้สีแดงแทนสถานะเร่งด่วน หรือใช้สีเขียวแทนผ่านการอนุมัติ  
การใช้สีแทนข้อมูลอาจทำให้สูตร, PivotTable, Power Query และ Copilot ไม่สามารถนำความหมายนั้นไปวิเคราะห์ได้  
คำแนะนำ: ควรเพิ่มคอลัมน์ข้อมูลจริง เช่น Status, Priority หรือ Approval Result  
สถานะ: Copilot ยังไม่ได้เพิ่มหรือแก้ไขคอลัมน์ใด ๆ"

## Data Quality Audit Checklist

When auditing, check for:

- Font not Tahoma
- Font size not 14
- Font color not black
- Gridlines still visible
- Borders not dark gray
- Data ranges not formatted as Excel Tables
- Missing or unclear Table Names
- Table headers not bold
- Table headers with fill color
- Data cells with unnecessary fill color
- Formulas not using Structured References
- Formulas using full-column references
- VLOOKUP or HLOOKUP formulas
- SUMIF formulas
- Manual addition formulas instead of SUM
- Leading spaces
- Trailing spaces
- Repeated spaces
- Suspected non-printing characters
- Alt+Enter line breaks
- Merged cells
- Blank rows inside tables
- Possible spelling or wording issues
- Raw data mixed with calculation or dashboard areas
- Mixed data types in the same column
- Formatting used as data meaning

## Short Warning Templates

Use these short templates when the user prefers a concise report.

### High Priority Template

"พบปัญหาความเสี่ยงสูง: [Issue] ใน [Location]  
ผลกระทบ: อาจทำให้สูตร, PivotTable, Filter, Dashboard หรือ Copilot วิเคราะห์ข้อมูลผิดพลาด  
คำแนะนำ: [Recommended Action]  
สถานะ: แจ้งเตือนเท่านั้น ยังไม่ได้แก้ไขไฟล์"

### Medium Priority Template

"พบข้อควรปรับปรุง: [Issue] ใน [Location]  
ผลกระทบ: อาจทำให้ไฟล์ดูแลยากหรือไม่เป็นมาตรฐานเดียวกัน  
คำแนะนำ: [Recommended Action]  
สถานะ: แจ้งเตือนเท่านั้น ยังไม่ได้แก้ไขไฟล์"

### Low Priority Template

"พบข้อสังเกต: [Issue] ใน [Location]  
ผลกระทบ: มีผลต่อความเรียบร้อยหรือความชัดเจนของรายงาน  
คำแนะนำ: [Recommended Action]  
สถานะ: แจ้งเตือนเท่านั้น ยังไม่ได้แก้ไขไฟล์"

## Final Reminder

This skill is for warning and auditing only.

Do not modify the workbook.

Do not fix issues automatically.

Do not apply formatting automatically.

Do not clean data automatically.

Do not change formulas automatically.

Do not unmerge cells automatically.

Do not convert ranges to Tables automatically.

Do not rename Tables automatically.

Only inspect, warn, explain, and recommend.