Thep Excel

TIMEVALUE – แปลง Text เป็น Time

แปลง Text เป็น Time

แปลงข้อความเวลาให้เป็น serial number ของเวลา (0-0.999…)

=TIMEVALUE(time_text)

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=TIMEVALUE(time_text)

Argument Type Required Default Description
time_text Text Yes ข้อความเวลา เช่น “6:00 PM”

Examples

แปลงเวลา

18:00 คิดเป็น 0.75 ของวัน
Excel Formula:

=TIMEVALUE("6:00 PM")

Result:

0.75

แปลงข้อความเป็นค่าเวลา

แปลง "14:30:45" เป็นค่าทศนิยม 0.604513889 (สัดส่วนของวันที่ 1)
Excel Formula:

=TIMEVALUE("14:30:45")

Result:

0.604513889

ถ้า A1="14:30:45" จะดึงชั่วโมง = 14
Excel Formula:

=HOUR(TIMEVALUE(A1))

Result:

14

Resources & Related

Additional Notes

ฟังก์ชัน TIMEVALUE ใน Excel ช่วยแปลงข้อความเวลาให้เป็น serial number ของเวลา (0-0.999…)

Leave a Reply

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