TIMEVALUE function in Excel
Converts a time in the form of text to a serial number
=TIMEVALUE(time_text)TIMEVALUE syntax and parameters
One argument, one required.
- time_textstringRequired
A text string that represents a time in any one of the Microsoft Excel time formats; for example, "6:45 PM" and "18:45" text strings within quotation marks that represent time.
TIMEVALUE examples
Formulas you'll actually reuse.
A text time as a fraction of a day — 17:15 is 0.71875, so multiply by 24 for hours:
=TIMEVALUE("17:15")Result
0.71875Hours between two clock times that arrived as text:
=(TIMEVALUE("5:15 PM") - TIMEVALUE("8:30 AM")) * 24Result
8.75
TIMEVALUE in Google Sheets
Same name — your formula ports as-is.
Try TIMEVALUE in the playground
Edit the example — nothing to install.
Preloaded with the TIMEVALUE formula from Example 1 — change anything and watch it respond.
TIMEVALUE errors
What they mean — and the fixes.
#VALUE!The text isn't a recognisable time — check for a stray date, a missing colon, or 24:00 written as 24:00:00.
Related functions
More ways Excel gets this done.
- DATEReturns the serial number of a particular dateDateGoogle Sheets
- DATEDIFCalculates the number of days, months, or years between two dates. This function is useful in formulas where you need to calculate an age.DateGoogle Sheets
- DATEVALUEConverts a date in the form of text to a serial numberDateGoogle Sheets
- DAYConverts a serial number to a day of the monthDateGoogle Sheets
- DAYSReturns the number of days between two datesDateGoogle Sheets
- DAYS360Calculates the number of days between two dates based on a 360-day yearDateGoogle Sheets