Thep Excel

TYPE – ดูชนิดข้อมูล (Type ID)

ดูชนิดข้อมูล (Type ID)

ส่งกลับตัวเลขระบุชนิดของข้อมูล (1=Number, 2=Text, etc.)

=TYPE(value)

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=TYPE(value)

Argument Type Required Default Description
value Any Yes ค่าที่ตรวจสอบ

Examples

ตัวอย่าง

2 คือ Text
Excel Formula:

=TYPE("A")

Result:

2

ตรวจสอบประเภทของค่า

หากเซลล์ A1=123 (ตัวเลข) TYPE ส่งกลับ 1 (ตัวเลข)
Excel Formula:

=TYPE(A1)

Result:

1

หากเซลล์ B1="text" TYPE ส่งกลับ 2 (ข้อความ)
Excel Formula:

=IF(TYPE(B1)=2, "เป็นข้อความ", "ไม่ใช่")

Result:

"เป็นข้อความ"

Resources & Related

Additional Notes

ฟังก์ชัน TYPE ใน Excel ช่วยส่งกลับตัวเลขระบุชนิดของข้อมูล (1=Number, 2=Text, etc.)

Leave a Reply

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