
Builds a valid Excel time value from separate hour, minute, and second inputs.
The Excel TIME function builds a valid time value from separate hour, minute, and second inputs.
TIME is useful when time parts come from different cells, imported data, forms, or calculations and need to be turned into one usable Excel time value.
Combines hour, minute, and second inputs into one valid Excel time.
Returns the time portion of a day as a numeric value that Excel can calculate with and format as a time.
=TIME(hour, minute, second)
All three arguments are required. Excel combines them into a single time value.
These functions are related, but they solve different problems.
| Function | Input Type | Best Use | Example |
|---|---|---|---|
TIME |
Separate numeric components | Build a time from hour, minute, and second values | =TIME(10,30,0) |
TIMEVALUE |
Text string | Convert text like "10:30 PM" into a time value | =TIMEVALUE("10:30 PM") |
Use TIME when you already have the numeric pieces. Use TIMEVALUE when the time is still stored as text.
Microsoft documents that TIME returns a decimal number between 0 and about 0.99988426, which represents a time from midnight to 11:59:59 PM. The exact display depends on the cell format.
A useful detail is that TIME can handle oversized inputs. If the hour, minute, or second value is larger than the usual limit, Excel rolls the extra amount into the next unit. For example, extra minutes become additional hours.
This makes TIME a good choice for rebuilding times from calculations, normalizing imported data, or cleaning timestamps before using them in schedules or reports.
The simplest use is building a time directly from numeric components.
=TIME(10,30,0)
This returns 10:30 AM as a valid Excel time value, which can then be formatted or used in later calculations.
In cell F1, build 10:30 AM with =TIME(10,30,0).
TIME works naturally with 24-hour input values.
=TIME(22,45,0)
This returns 10:45 PM. That makes the function useful for shift schedules, system logs, and imported data that already uses 24-hour time.
In cell F2, build 10:45 PM using 24-hour time.
One of the most useful features of TIME is its rollover behavior.
=TIME(10,90,0)
Because 90 minutes equals 1 hour and 30 minutes, Excel returns 11:30 AM. This helps keep formulas simpler when time parts come from calculations.
In cell F3, observe how TIME handles 90 minutes.
TIME can rebuild a time after extracting parts from a larger timestamp.
=TIME(HOUR(B1),MINUTE(B1),0)
This is useful when you want to drop the seconds from a timestamp and keep only the hour and minute as a clean time value.
In cell F4, build a 2:45 PM time value with TIME.
TIME builds a valid time value from hour, minute, and second inputs.Tell your friends about this post