Syntax
| Parameter | Description |
|---|---|
| hour | Parameter of the TIME function. |
| minute | Parameter of the TIME function. |
| second | Parameter of the TIME function. |
Examples
Create a time
=TIME(14, 30, 0)
Add hours to a time
=A1 + TIME(2, 0, 0)
Calculate shift end
=TIME(HOUR(A1)+8, MINUTE(A1), 0)
Common Errors
Occurs when the resulting time is negative. Hours, minutes, and seconds can exceed their normal range (e.g., TIME(0, 90, 0) = 1:30 AM) but negative results error.
Occurs when arguments are non-numeric text.
Tips
TIME(25, 0, 0) returns 1:00 AM (wraps past midnight). For durations exceeding 24 hours, use direct arithmetic instead (hours/24).
TIME(0, 90, 0) returns 1:30 AM — 90 minutes overflows into hours. Same for seconds overflowing into minutes. This is useful for adding time components.
Internally, 12:00 PM = 0.5 (half a day), 6:00 AM = 0.25. When adding time to a date, you're adding fractions of a day.
Try TIME in Viztab
Import your data and use TIME with 370+ other formulas. No signup required.
Open Viztab