🇹🇭 XLOOKUP ใช้อย่างไร และต่างจาก VLOOKUP, INDEX MATCH ตรงไหน
สรุปจากคลิปของช่อง Lin Davoy คลิปนี้พาไปรู้จักกับ XLOOKUP ฟังก์ชันค้นหาข้อมูลรุ่นใหม่ใน Excel ที่ Lin บอกว่าทรงพลังที่สุดเท่าที่เคยมีมา และถูกออกแบบมาเพื่อแก้จุดอ่อนของ VLOOKUP และ INDEX MATCH ที่คนทำงานสาย Data คุ้นเคยกันดี ถ้าใครยังใช้ VLOOKUP อยู่ทุกวันแต่เจอปัญหาโลกแตกบ่อยๆ เช่น หาคอลัมน์ทางซ้ายไม่ได้ หรือพอแทรกคอลัมน์แล้วสูตรพัง คลิปนี้ตอบโจทย์ตรงจุดมาก
XLOOKUP คืออะไร ทำไมถึงเรียกว่าทรงพลังที่สุด
XLOOKUP เป็นฟังก์ชันค้นหาข้อมูลรุ่นใหม่ของ Excel ที่มาแทนที่ทั้ง VLOOKUP, HLOOKUP และการผสม INDEX กับ MATCH ในสูตรเดียว จุดเด่นที่ Lin เน้นในคลิปคือ XLOOKUP ค้นหาได้ทั้งซ้ายและขวา ไม่ต้องมานั่งนับคอลัมน์เหมือน VLOOKUP ที่บังคับให้คอลัมน์ผลลัพธ์ต้องอยู่ทางขวาของคอลัมน์ที่ใช้ค้นหาเท่านั้น แค่จุดนี้จุดเดียวก็ลดความปวดหัวไปได้เยอะแล้วสำหรับคนที่ต้องจัดโครงสร้างตารางใหม่อยู่บ่อยๆ
ใช้งานยังไง ตั้งแต่พื้นฐานถึงขั้นสูง
คลิปนี้สอนแบบ Step-by-Step ตั้งแต่โครงสร้างสูตรพื้นฐาน คือ ค้นหาค่าอะไร (lookup value), ค้นหาจากช่วงไหน (lookup array), และจะเอาผลลัพธ์จากช่วงไหนมาแสดง (return array) ไปจนถึงเทคนิคขั้นสูงอย่างการกำหนดค่าที่จะแสดงเมื่อหาไม่เจอ (if not found) ซึ่งช่วยให้ไม่ต้องซ้อนฟังก์ชัน IFERROR เพิ่มอีกชั้นแบบที่ต้องทำกับ VLOOKUP และยังรองรับการค้นหาแบบ exact match เป็นค่าเริ่มต้น ทำให้ผลลัพธ์แม่นยำกว่าการเผลอลืมใส่ FALSE ในสูตร VLOOKUP แบบเดิม
เทียบชัดๆ กับ VLOOKUP และ INDEX MATCH
ประเด็นที่ Lin เปรียบเทียบให้เห็นภาพคือ VLOOKUP นั้นใช้ง่ายแต่มีข้อจำกัดเยอะ ทั้งเรื่องค้นหาซ้ายไม่ได้ และพังง่ายเมื่อมีการแทรกหรือลบคอลัมน์ในตาราง ส่วน INDEX MATCH แก้ปัญหาเรื่องทิศทางการค้นหาได้ แต่ต้องเขียนสองฟังก์ชันซ้อนกัน อ่านสูตรยากขึ้นสำหรับมือใหม่ XLOOKUP จึงเป็นเหมือนทางสายกลางที่เอาข้อดีของทั้งสองแบบมารวมกัน คือยืดหยุ่นเหมือน INDEX MATCH แต่เขียนง่ายเหมือน VLOOKUP
ตารางเปรียบเทียบ XLOOKUP vs VLOOKUP vs INDEX MATCH
| หัวข้อ | VLOOKUP | INDEX MATCH | XLOOKUP |
|---|---|---|---|
| ค้นหาทางซ้ายได้ไหม | ไม่ได้ | ได้ | ได้ |
| พังเมื่อแทรก/ลบคอลัมน์ | พังง่าย | ไม่ค่อยพัง | ไม่พัง |
| ความยากของสูตร | ง่าย | ปานกลาง-ยาก (ซ้อน 2 ฟังก์ชัน) | ง่าย |
| จัดการกรณีหาไม่เจอ | ต้องซ้อน IFERROR | ต้องซ้อน IFERROR | มีในตัว (if not found) |
สรุป: ควรเปลี่ยนมาใช้ XLOOKUP ไหม
คำแนะนำจากคลิปคือ ถ้าใช้ Excel เวอร์ชันที่รองรับ XLOOKUP อยู่แล้ว (Microsoft 365 หรือ Excel 2021 ขึ้นไป) ควรเริ่มปรับมาใช้ XLOOKUP แทน VLOOKUP ได้เลย เพราะยืดหยุ่นกว่า อ่านง่ายกว่า และลดโอกาสสูตรพังจากการแก้ไขตาราง ส่วน INDEX MATCH ยังมีประโยชน์ในบางสถานการณ์ที่ต้องการความยืดหยุ่นเฉพาะทาง แต่สำหรับงานค้นหาข้อมูลทั่วไปในชีวิตประจำวัน XLOOKUP ตอบโจทย์ได้ครบและเรียนรู้ง่ายกว่ามาก
🇬🇧 How to use XLOOKUP, and how it differs from VLOOKUP and INDEX MATCH
This article is summarized from the Lin Davoy channel. This video introduces XLOOKUP, the newer Excel lookup function that Lin calls the most powerful search function Excel has ever had, built specifically to fix the pain points of VLOOKUP and INDEX MATCH that every data person eventually runs into. If you still rely on VLOOKUP daily but keep hitting the same classic problems, like being unable to look to the left or having the formula break every time a column gets inserted, this video is exactly for you.
What makes XLOOKUP so powerful
XLOOKUP is the modern replacement for VLOOKUP, HLOOKUP, and the classic INDEX plus MATCH combo, all rolled into a single function. The standout feature Lin highlights is that XLOOKUP can search both left and right, so you no longer have to count columns the way VLOOKUP forces you to, since VLOOKUP only ever returns a value from a column to the right of the lookup column. That single change alone removes a huge amount of frustration for anyone who regularly restructures their tables.
How to use it, from basics to advanced techniques
The video walks through it step by step, starting with the basic formula structure: what value to look up, which range to search, and which range to pull the result from. It then moves on to more advanced techniques, such as setting a custom value to show when nothing is found, which means you no longer need to wrap the whole thing in an extra IFERROR layer the way you would with VLOOKUP. XLOOKUP also defaults to an exact match, so results are more reliable than the old VLOOKUP habit of forgetting to add FALSE at the end of the formula.
A direct comparison with VLOOKUP and INDEX MATCH
Lin lays out the comparison clearly: VLOOKUP is easy to write but comes with real limitations, it cannot look left, and it breaks easily whenever a column is inserted or removed in the table. INDEX MATCH solves the directional search problem, but requires nesting two functions together, which makes the formula harder for beginners to read. XLOOKUP ends up as a middle ground that combines the best of both, as flexible as INDEX MATCH but as easy to write as VLOOKUP.
XLOOKUP vs VLOOKUP vs INDEX MATCH at a glance
| Aspect | VLOOKUP | INDEX MATCH | XLOOKUP |
|---|---|---|---|
| Can search to the left | No | Yes | Yes |
| Breaks when columns are inserted/deleted | Breaks easily | Fairly resilient | Does not break |
| Formula difficulty | Easy | Moderate to hard (2 nested functions) | Easy |
| Handling not-found results | Needs a nested IFERROR | Needs a nested IFERROR | Built in (if not found argument) |
Verdict
The recommendation from the video: if you are on an Excel version that supports XLOOKUP already, meaning Microsoft 365 or Excel 2021 and newer, it is worth switching over from VLOOKUP right away, since it is more flexible, easier to read, and far less likely to break when the table changes. INDEX MATCH still has its place for a few specialized situations, but for everyday lookup work, XLOOKUP covers nearly everything and is much faster to learn.
ติดตามข่าวสาร Data & AI ได้ที่:
Facebook: https://www.facebook.com/davoytech
YouTube: https://www.youtube.com/@linlinmhee
📌 อย่าลืมกด Like, Share และ Subscribe เป็นกำลังใจให้ด้วยนะคะ!
💬 ทุกวันนี้เพื่อนๆ ยังใช้ VLOOKUP อยู่ไหมคะ หรือเปลี่ยนมาใช้ XLOOKUP แล้ว มาคอมเมนต์เล่าประสบการณ์กันหน่อยค่ะ
#Davoy #DavoyTech #Linlinmhee #เรียนAI #คอร์สAI #DataAndAI #XLOOKUP #Excel #ExcelTips #ExcelTutorial
