SheetRocks
Documentation/Formulas/TIMEVALUE

TIMEVALUE

Returns the decimal number of the time represented by a string. The decimal number is a value ranging from 0 (inclusive) to 1 (exclusive).

Syntax

TIMEVALUE(time_text)

Arguments

Argument Description Required
time_text A text string that represents a time. Required

Examples

Convert time string to decimal

=TIMEVALUE("6:00")
Result ⇒ 0.25

Convert afternoon time

=TIMEVALUE("3:30 PM")
Result ⇒ 0.6458

Convert time from cell

=TIMEVALUE(A1)
Result ⇒ 0.5
A
1 12:00:00

Related Functions

Other Date/Time functions:


← Back to Formula Reference