Category: FUNCTION | Updated: 2026-11-22

How to Use the TIME Function in Google Sheets | Create a Time from Hour, Minute, and Second

How to Use the TIME Function in Google Sheets

The TIME function combines separate hour, minute, and second numbers from different cells into a valid time value that Google Sheets can use in time calculations. It is especially useful for formatting attendance logs or calculating an estimated end time by adding hours and minutes to a start time.

Syntax

=TIME(hour, minute, second)
  • hour: A number from 0 to 23 representing the hour (values 24 or above wrap modulo 24).
  • minute: A number from 0 to 59 representing the minute (values 60 or above roll over into hours).
  • second: A number from 0 to 59 representing the second (values 60 or above roll over into minutes).

Examples

Here is an example of creating time values in Column D from hour (A), minute (B), and second (C) values.

Row A (Hour) B (Minute) C (Second) D (Formula) Result Description
1 14 30 0 =TIME(A1, B1, C1) 14:30:00 Basic time creation
2 9 75 0 =TIME(A2, B2, C2) 10:15:00 75 minutes roll over into 1 hour 15 minutes
3 25 0 0 =TIME(A3, B3, C3) 1:00:00 Hours over 24 wrap to the next day (1:00 AM)
4 (Start 10:00) (Task 45m) 0 =A4+TIME(0, B4, 0) 10:45:00 Adds 45 minutes to an existing time value

Common Errors and Tips

  • Not suitable for durations of 24 hours or more
    • Because TIME represents a time of day (0:00:00–23:59:59), multiples of 24 hours are discarded. To build cumulative durations like “26 hours 30 minutes”, calculate =A1/24 + B1/1440 instead of TIME.
  • When #NUM! errors occur
    • If negative numbers cause the resulting time to fall below 0:00:00 (e.g., =TIME(1, -90, 0) equals -30 minutes), a #NUM! error is returned.
  • When the result displays as a decimal like 0.604166...
    • Google Sheets stores time as a fractional serial number where 1 day = 1 and 12 hours = 0.5. If you see a decimal, select Format > Number > Time.

Frequently Asked Questions

Q. What happens if I enter 24 or higher for "hour" in the TIME function?

A. It wraps around using the remainder after dividing by 24. For example, "=TIME(26, 0, 0)" calculates 26 - 24 = 2 and returns "2:00:00 (2:00 AM)".

Q. How do I add a duration like "90 minutes" to a start time?

A. Write "=A1 + TIME(0, 90, 0)". The 90 minutes are automatically converted to 1 hour and 30 minutes and added to the original time.