
The Excel TIMEVALUE function converts a text string that represents a time into a valid Excel time value.
TIMEVALUE is useful when imported data, copied reports, web exports, or log files store time values as text instead of as usable Excel times.
Turns a recognizable time string into a numeric Excel time value.
Returns the time portion of a day as a number that Excel can format and calculate with.
=TIMEVALUE(time_text)
The function takes one argument: a text string that Excel can recognize as a valid time.
These two functions work with time values in different ways.
| Function | Input Type | Best Use | Example |
|---|---|---|---|
TIMEVALUE |
Text string | Convert text like "2:45 PM" into a real time value | =TIMEVALUE("2:45 PM") |
TIME |
Numeric components | Build a time from hour, minute, and second inputs | =TIME(14,45,0) |
Use TIMEVALUE when the source value is still text. Use TIME when you already have the hour, minute, and second as numbers.
Microsoft documents that TIMEVALUE returns the decimal portion of a time value, ranging from 0 to about 0.99988426, which represents times from 12:00:00 AM to 11:59:59 PM.
An important detail is that date information in time_text is ignored. If the text includes both a date and a time, TIMEVALUE keeps the time portion only. If the text cannot be recognized as a valid time, Excel returns #VALUE!.
This makes TIMEVALUE especially useful in cleanup workflows. You can extract the time-like portion of a messy string, convert it into a real time value, and then use that result in comparisons, schedules, or further calculations.
The most direct use of TIMEVALUE is converting a text time into a real Excel time.
=TIMEVALUE("10:30")
This returns a valid time value that Excel can format and calculate with, instead of leaving the input as plain text.
In cell F1, convert the text "10:30" into a usable time value.
TIMEVALUE can also handle 12-hour time strings that include AM or PM.
=TIMEVALUE("2:45 PM")
This is useful when imported data uses a 12-hour clock format and you need a standard Excel time value for calculations.
In cell F2, convert the text "2:45 PM" into a time value.
If the text includes both a date and a time, TIMEVALUE keeps only the time portion.
=TIMEVALUE("2026-04-06 14:00")
This is helpful when you only need the clock value from a combined timestamp string.
In cell F3, test whether the time text in B1 is after noon.
You can combine TIMEVALUE with text functions to repair messy imported strings.
=TIMEVALUE(RIGHT(B2,8))
If the last eight characters of B2 contain a valid time such as 22:45:30, this formula turns that extracted text into a real Excel time value.
In cell F4, take the last 8 characters from B2 and convert them into a time value.
TIMEVALUE converts time text into a valid Excel time value.#VALUE!.Tell your friends about this post