TIME function in Excel
Returns the serial number of a particular time
=TIME(hour, minute, second)TIME syntax and parameters
Three arguments, three required.
- hournumberRequired
A number from 0 (zero) to 32767 representing the hour. Any value greater than 23 will be divided by 24 and the remainder will be treated as the hour value. For example, TIME(27,0,0) = TIME(3,0,0) = .125 or 3:00 AM.
- minutenumberRequired
A number from 0 to 32767 representing the minute. Any value greater than 59 will be converted to hours and minutes. For example, TIME(0,750,0) = TIME(12,30,0) = .520833 or 12:30 PM.
- secondnumberRequired
A number from 0 to 32767 representing the second. Any value greater than 59 will be converted to hours, minutes, and seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148 or 12:33:20 AM
TIME examples
Formulas you'll actually reuse.
A clock-out time from hours, minutes and seconds:
=TIME(17, 15, 0)Result
17:15Minutes overflow into hours — 90 minutes reads as 01:30:
=TIME(0, 90, 0)Result
01:30
TIME in Google Sheets
Same name — your formula ports as-is.
Try TIME in the playground
Edit the example — nothing to install.
Preloaded with the TIME formula from Example 1 — change anything and watch it respond.
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