Google Sheets
TIMEVALUE function in Google Sheets
Returns the fraction of a 24-hour day the time represents.
=TIMEVALUE(time_string)TIMEVALUE syntax and parameters
One argument, one required.
- time_stringstringRequired
The string that holds the time representation.
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 Excel
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.
Loading the editor…
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 Google Sheets gets this done.
- DATEConverts a provided year, month, and day into a date.DateExcel
- DATEDIFCalculates the number of days, months, or years between two dates.DateExcel
- DATEVALUEConverts a provided date string in a known format to a date value.DateExcel
- DAYReturns the day of the month that a specific date falls on, in numeric format.DateExcel
- DAYSReturns the number of days between two dates.DateExcel
- DAYS360Returns the difference between two days based on the 360 day year used in some financial interest calculations.DateExcel