COPILOT เป็นฟังก์ชันแรกใน Excel ที่ใช้ AI (GPT-4.1-mini) ประมวลผลข้อมูลและสร้างข้อความตามคำสั่งที่กำหนด เหมาะสำหรับสรุปข้อมูล จัดหมวดหมู่ และสร้าง content อัตโนมัติ
=COPILOT(prompt_part1, [context1], [prompt_part2], [context2], ...)
=COPILOT(prompt_part1, [context1], [prompt_part2], [context2], ...)
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| prompt_part1 | Text | Yes | ข้อความที่อธิบายงานหรือคำถามที่ต้องการให้ AI ทำ เช่น “Summarize this feedback” หรือ “Classify this text” | |
| context1 | Range/Cell | Optional | Reference ของเซลล์หรือ Range ที่ต้องการให้ AI ใช้เป็นข้อมูลประกอบ เช่น A1:A100 สำหรับข้อมูลที่ต้องการสรุป | |
| prompt_part2 | Text | Optional | ข้อความเพิ่มเติมสำหรับ prompt ใช้สำหรับสร้าง prompt ที่ซับซ้อนมากขึ้น | |
| context2 | Range/Cell | Optional | Reference ของเซลล์หรือ Range เพิ่มเติมสำหรับให้ข้อมูลประกอบมากขึ้น |
COPILOT("Classify this feedback as Positive, Negative, or Neutral:", A2)=COPILOT("Classify this feedback as Positive, Negative, or Neutral:", A2)
Positive
COPILOT("Summarize these customer feedbacks in 3 bullet points:", D4:D18)=COPILOT("Summarize these customer feedbacks in 3 bullet points:", D4:D18)
- Customers love fast delivery\n- Quality meets expectations\n- Some concerns about packaging
COPILOT("Generate 5 product names for", B2, "in the category of", C2)=COPILOT("Generate 5 product names for", B2, "in the category of", C2)
1. AquaPure Pro\n2. ClearFlow Ultra\n3. PureWave Max\n4. FreshStream Elite\n5. HydroClean Plus
COPILOT("Write a 50-word product description for:", A2:C2)=COPILOT("Write a 50-word product description for:", A2:C2)
Introducing the EcoSmart Water Bottle...
COPILOT("Generate a list of 10 fictional company names for a tech startup")=COPILOT("Generate a list of 10 fictional company names for a tech startup")
NovaTech Solutions\nQuantum Dynamics...\n(และอีก 8 รายการ)
COPILOT function ทำงานในเซลล์โดยตรง ผลลัพธ์เป็น formula ที่ recalculate ได้ ส่วน Copilot side panel เป็น chat interface ที่ช่วยเขียนสูตรหรือวิเคราะห์ข้อมูลแบบ interactive ครับ
เพราะ AI เป็น non-deterministic ครับ เหมือนเวลาเราถามคำถามเดิมกับคน คำตอบอาจต่างกันเล็กน้อยแต่ละครั้ง ถ้าต้องการผลลัพธ์คงที่ให้ Copy แล้ว Paste as Values ครับ
COPILOT เข้าถึงได้เฉพาะข้อมูลที่คุณใส่ใน context arguments เท่านั้น ไม่สามารถเข้าถึงข้อมูลอื่นใน workbook, ระบบภายในองค์กร, หรือ internet ได้ และ Microsoft ยืนยันว่าข้อมูลจะไม่ถูกใช้ train AI model ครับ
COPILOT เป็นฟังก์ชันปฏิวัติวงการของ Excel เพราะเป็นครั้งแรกที่ Excel มีฟังก์ชันที่ใช้ AI ในการประมวลผลข้อมูลโดยตรงในเซลล์
ที่เจ๋งคือ COPILOT สามารถทำงานที่ซับซ้อนได้ เช่น สรุป feedback ลูกค้า จัดหมวดหมู่ข้อมูล สร้างคำอธิบายสินค้า หรือแม้แต่สร้างข้อมูลตัวอย่างให้เราได้ทันที โดยแค่พิมพ์คำสั่งเป็นภาษาธรรมชาติ
ส่วนตัวผมตื่นเต้นมากกับฟังก์ชันนี้ เพราะมันเปลี่ยนวิธีคิดเรื่องการทำงานใน Excel ไปเลย จากเดิมที่ต้องเขียนสูตรซับซ้อนหรือใช้ VBA ตอนนี้แค่บอก AI ว่าอยากได้อะไรก็พอ
ที่ต้องระวังคือ COPILOT เป็น AI ที่อาจให้คำตอบไม่ตรงกันทุกครั้งที่คำนวณ (non-deterministic) และยังอยู่ในช่วง Beta ต้องมี Copilot subscription และเข้าร่วม Insider Program ถึงจะใช้ได้ครับ 😎