TIME Function

Excel Functions › Date & Time

All Excel versions

The Excel TIME function assembles a valid Excel time from three plain numbers — an hour, a minute, and a second. It is the safe way to build times in formulas: no quoting, no text parsing, no guessing. The key to mastering it is one idea: Excel stores every time as a fraction of a 24-hour day, so noon is 0.5 and 6:00 PM is 0.75. TIME builds that fraction for you. Pair it with DATE for full timestamps, and with HOUR, MINUTE, and SECOND to take times apart again.


Quick answer: to build half past two in the afternoon:
=TIME(14, 30, 0)
Format the cell as a time and it shows 2:30 PM. Under the hood Excel stores 0.6041667 — the fraction of the day that has elapsed by 2:30 PM.

Syntax

=TIME(hour, minute, second)
ArgumentDescription
hourRequired0–32767. Values of 24 or more roll over: TIME(27,0,0) = 3:00 AM. Decimals are truncated.
minuteRequired0–32767. Values over 59 spill into hours: TIME(0,90,0) = 1:30 AM.
secondRequired0–32767. Values over 59 spill into minutes: TIME(0,0,3661) = 1:01:01 AM.

How Excel stores times: a time is a decimal fraction of one day. Midnight is 0, 6:00 AM is 0.25, noon is 0.5, 6:00 PM is 0.75. TIME always returns a value from 0 up to (but never reaching) 1 — whole days are discarded. Available in every version of Excel.

Build times from hour, minute, second

Hours sit in column A, minutes in B, seconds in C. One formula in column D turns each row into a real Excel time; column E shows the day-fraction Excel actually stores:

ABCDE
1HourMinuteSecond=TIME(A,B,C)Stored value
29009:00 AM0.375
3143002:30 PM0.6041667
41845306:45:30 PM0.7815972
500012:00 AM0
=TIME(A2, B2, C2) // format the cell as h:mm AM/PM

Because the result is a genuine numeric time — not text — you can sort it, chart it, subtract it, and feed it to any other function. Combine it with DATE to build a full timestamp:

=DATE(2026, 6, 12) + TIME(14, 30, 0) // June 12, 2026 2:30 PM in one serial number

Try it: interactive TIME demo

Live demo

Step the hour, minute, and second arguments and watch both the formatted time and the day-fraction Excel stores. Push minutes past 59 or hours past 23 to see the overflow rules.

Overflow, midnight rollover, and time math

Minutes and seconds beyond the usual range are perfectly legal — TIME normalizes them. That makes it ideal for shifting a time by an interval:

=A2 + TIME(0, 90, 0) // add 90 minutes to the time in A2
=A2 - TIME(0, 0, 45) // subtract 45 seconds

Hours of 24 or more wrap around midnight, and the whole days vanish:

=TIME(27, 0, 0) // returns 3:00 AM, not 27 hours

That rollover is a feature for clock times but a trap for durations. If 9:00 PM plus 5 hours should land on 2:00 AM tomorrow, add the day fraction directly instead, because plain arithmetic carries the day:

=A2 + 5/24 // add 5 hours and keep the date moving forward
=A2 + 90/1440 // add 90 minutes as a day fraction (1440 minutes per day)

Rule of thumb: divide by 24 for hours, 1440 for minutes, 86400 for seconds — each converts a plain number into a day fraction you can add to any date or time.

Errors & common pitfalls

#NUM! — a negative argument. TIME accepts 0 to 32767 for each argument. =TIME(-1, 0, 0) or =TIME(8, -30, 0) fails. To move backwards in time, subtract instead: =A2 - TIME(0, 30, 0).

Pitfall: you see 0.604167 instead of 2:30 PM. The formula worked — the cell is just formatted as General. Apply a time format (Ctrl+1 › Time, or the format code h:mm AM/PM) and the fraction displays as a clock time.

Pitfall: silent midnight rollover. =TIME(20,0,0) + TIME(8,0,0) displays 4:00 AM, and the fact that it is the next day is gone. When the date matters, work with full DATE+TIME timestamps, not bare times.

Pitfall: durations over 24 hours. TIME cannot represent 26 elapsed hours — it wraps to 2:00 AM. For durations, sum day fractions and format the cell as [h]:mm; the square brackets let hours run past 24.

Pitfall: decimals are truncated, not rounded. =TIME(8, 30.9, 0) is 8:30, not 8:31. Convert fractional minutes to seconds yourself: =TIME(8, 30, 54).

Practice workbook

📊
Download the free TIME practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Why does TIME show a decimal like 0.604167 instead of a time?
The cell is formatted as General. Excel stores every time as a fraction of a 24-hour day — 0.604167 is 2:30 PM. Apply a time format (Ctrl+1 › Time) and the same value displays as a clock time.
How do I add hours or minutes to a time in Excel?
Add a TIME interval: =A2+TIME(0,90,0) adds 90 minutes. Or add a day fraction directly: =A2+5/24 adds 5 hours, =A2+90/1440 adds 90 minutes. The fraction method also carries past midnight into the next day when A2 holds a full date-time.
Why does TIME(25,0,0) return 1:00 AM?
Hours of 24 or more roll over midnight: TIME divides by 24 and keeps the remainder, so 25 hours becomes 1:00 AM and the extra day is discarded. TIME always returns a value between 0 and 0.99999 — a clock time, never a duration.
Can TIME return a negative time?
No. Negative arguments give #NUM!, and Excel cannot display a negative time under the default 1900 date system anyway. To go backwards, subtract a positive interval: =A2-TIME(1,30,0).
What's the difference between TIME and TIMEVALUE?
TIME builds a time from three numbers: =TIME(14,30,0). TIMEVALUE parses a time from text: =TIMEVALUE("2:30 PM"). Both return the same day fraction; choose based on what you have.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: HOUR · MINUTE · SECOND · TIMEVALUE · DATE