Filter ใน Excel เป็นเครื่องมือยอดเยี่ยมสำหรับหาข้อมูลที่ตรงเงื่อนไขจาก Worksheet ใหญ่ ใช้ได้ทั้ง Sheet ทั้งหมด หรือคอลัมน์เดียว/หลายคอลัมน์ สามารถเลือกจากลิสต์ที่ Excel แสดง หรือสร้าง Custom Filter เองได้ การใช้ Text Filter สามารถค้นหาข้อความผ่าน Search Box หรือเมนู Text Filters
ดาวน์โหลดไฟล์ฝึกปฏิบัติเพื่อทำตามบทความได้
5 ตัวอย่าง Text Filter ใน Excel
สถานการณ์: Worksheet มีข้อมูลสินค้าที่ขายให้ลูกค้า คอลัมน์: Product, Category, Sales Person, Shipping Address

1. กรองข้อความเฉพาะจาก Worksheet (Basic Filter)
กรองเฉพาะ LED Monitor ในคอลัมน์ Product
ขั้นตอน:
- เลือกเซลล์ในข้อมูล → Data → Filter (Sort & Filter)

- คลิกลูกศรที่หัวคอลัมน์ Product → ยกเลิก Select All → เลือก LED Monitor → OK


- เหลือเฉพาะแถวที่ Product = LED Monitor

อ่านเพิ่ม: How to Filter Unique Values in Excel
2. ใช้ Text Filter "Equals" หาค่าที่ตรงกันเป๊ะ
กรอง Category = Memory โดยใช้เมนู Equals
ขั้นตอน:
- เปิด Filter → คลิกลูกศรคอลัมน์ Category → Text Filters → Equals



- ใน Custom AutoFilter: เลือก equals → พิมพ์ Memory → OK

- ได้เฉพาะ Category = Memory

ขยาย: ใช้ OR กรอง 2 เงื่อนไข (Memory OR Hardware)
- Custom AutoFilter: equals / Memory / Or / equals / Hardware → OK


- ได้ Category = Memory หรือ Hardware

3. ใช้ Text Filter "Begins With" หาข้อความขึ้นต้นด้วย...
กรอง Shipping Address ที่ขึ้นต้นด้วย New (New York, New Hampshire)
ขั้นตอน:
- Filter → คลิก Shipping Address → Text Filters → Begins With


- Custom AutoFilter: begins with / พิมพ์ New → OK

- ได้ Address เริ่มต้น New

สามารถเพิ่มเงื่อนไขที่ 2 ด้วย And/OR ได้เหมือน Equals
4. ใช้ Text Filter "Contains" หาข้อความที่มีตัวอักษรเฉพาะ
กรอง Sales Person ที่มีตัวอักษร o เป็นตัวที่ 2 ของชื่อ (ใช้ Wildcard ?o*)
ขั้นตอน:
- Filter → คลิก Sales Person → Text Filters → Contains


- Custom AutoFilter: contains / พิมพ์ ?o* → OK

- ได้ชื่อที่มี o ตัวที่ 2 (ตัวแรกอะไรก็ได้ ? แล้ว o แล้วอะไรก็ได้ *)

5. ใช้ Custom Filter (รวมเงื่อนไขหลายอย่าง)
หา Shipping Address ที่ ขึ้นต้น C แต่ ไม่ใช่ ตัวที่ 2 เป็น h (ตัด Chicago ออก เหลือ Carolina, California)
ขั้นตอน:
- Filter → Shipping Address → Text Filters → Custom Filter


- Custom AutoFilter ตั้งค่า:
- เงื่อนไข 1: equals / C* (ขึ้นต้น C)
- And
- เงื่อนไข 2: does not equal / ?h* (ตัวที่ 2 ไม่ใช่ h)
- OK

- ได้ Carolina และ California (Chicago ถูกตัดออก)

Text Filters อื่นๆ ที่ควรรู้
- Does Not Equal - ตรงข้าม Equals (ตัดค่าที่ตรงออก)
- Ends With - ข้อความที่ลงท้ายด้วย...
- Does Not Contain - ไม่มีข้อความที่ระบุ (ตัดค่าที่มีออก)
สรุป
บทความนี้ครอบคลุม 5 ตัวอย่าง Text Filter: 1) Basic Filter (เลือกจากลิสต์) 2) Equals (Exact match + OR) 3) Begins With (Prefix + And/Or) 4) Contains + Wildcard (?o*) 5) Custom Filter (Complex: C* AND NOT ?h*) ทำให้คุณใช้ Text Filter ได้อย่างมีประสิทธิภาพครับ
เพิ่มเติม
- How to Add Filter in Excel (4 Methods)
- Filter by Color in Excel (2 Examples)
- How to Filter by Date in Excel (4 Quick Methods)
- Search Multiple Items in Excel Filter (2 Ways)