TX Sheet Control

TIMEVALUE Function

Function

Convert a time in text form to a time serial number. date_text is a time such as "12:30", "12:45:39" or "6:45 PM"; the result is the fraction of a day. Text that isn't a time returns #VALUE!. A date alone returns 0. In TX Sheet Control, a date and time in one text, such as "2026-10-09 06:00", also returns 0.

Syntax

TIMEVALUE(date_text)

Category: Date & Time. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

Examples

=TIMEVALUE("6:45 PM")

The formula returns 0.78125, which displays as 6:45 PM with a time format.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also