Thep Excel

SEARCH – ค้นหาตำแหน่งข้อความ

ค้นหาตำแหน่งข้อความ

ค้นหาตำแหน่งของข้อความหนึ่งภายในอีกข้อความหนึ่ง (ไม่สนใจตัวพิมพ์)

=SEARCH(find_text, within_text, [start_num])

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=SEARCH(find_text, within_text, [start_num])

Argument Type Required Default Description
find_text Text Yes คำที่ต้องการหา
within_text Text Yes ข้อความหลัก
start_num Number Optional เริ่มหาที่ตำแหน่ง

Examples

หาตัว m

เจอ M (ไม่สนตัวพิมพ์) ที่ตัวแรก
Excel Formula:

=SEARCH("m", "McDuck")

Result:

1

หาตำแหน่งคำ

เจอคำว่า apple เริ่มต้นที่ตัวอักษรที่ 5 (ไม่สนตัวพิมพ์เล็ก-ใหญ่)
Excel Formula:

=SEARCH("apple", "Pineapple")

Result:

5

ตัวอย่างที่ 3: ตรวจสอบว่ามีข้อความที่ต้องการหรือไม่

สูตรใช้ ISNUMBER เพื่อตรวจสอบว่า SEARCH คืนค่าเป็นตัวเลขหรือไม่
– ถ้า "sample" มีอยู่ใน "This is a sample text" สูตร SEARCH จะคืนค่าเป็นตัวเลข (ตำแหน่งเริ่มต้น)
– ISNUMBER จะแปลงตัวเลขนั้นเป็น TRUE
– ถ้าไม่พบ, SEARCH จะคืนค่า Error, ISNUMBER จะเป็น FALSE
Excel Formula:

=ISNUMBER(SEARCH("sample", "This is a sample text"))

Result:

TRUE

Resources & Related

Additional Notes

ฟังก์ชัน SEARCH ใน Excel ช่วยค้นหาตำแหน่งของข้อความหนึ่งภายในอีกข้อความหนึ่ง (ไม่สนใจตัวพิมพ์)

Leave a Reply

Your email address will not be published. Required fields are marked *