TIME function
Builds a time value from separate hour, minute and second numbers.
Available in All versions of Excel (Windows and Mac), Excel for Microsoft 365, Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
TIME(hour, minute, second)| Argument | What it means | |
|---|---|---|
hour | Required | Hours, 0–32767. Values of 24 and above wrap around (24 becomes 0). |
minute | Required | Minutes, 0–32767. Values above 59 roll into hours, so 90 minutes = 1:30. |
second | Required | Seconds, 0–32767. Values above 59 roll into minutes. |
Returns: A decimal between 0 and 0.99999 representing a fraction of a day (e.g. 0.5 = 12:00).
How TIME works
TIME is to times what DATE is to dates: you pass hours, minutes and seconds as plain numbers and get back Excel's internal time value, a fraction of a day. 06:00 is 0.25, 12:00 is 0.5 and 18:00 is 0.75. Use TIME to type fixed times in formulas (=A2+TIME(0,90,0) adds 90 minutes) or to assemble times from separate columns in a timesheet export.
Overflow rolls over sensibly: 90 minutes becomes 1 hour 30 minutes. But TIME always returns time of day, so anything of 24 hours or more wraps around — TIME(27,0,0) is 03:00, not 27 hours. For durations longer than a day, divide hours by 24 instead (=27/24) and use the [h]:mm format.
Examples
1Fixed time in a formula
| A | |
|---|---|
| 1 | 09:30 |
Result: 09:30
Returns 0.395833…, the fraction of a day at 9:30 AM, shown as 09:30 with the cell formatted as hh:mm.
2Add 90 minutes to a meeting start
| A | B | |
|---|---|---|
| 1 | Meeting start | Ends |
| 2 | 08:45 | 10:15 |
Result: 10:15
TIME(0,90,0) converts 90 minutes into 1:30, and adding it to 08:45 gives 10:15 (formatted as hh:mm).
3Assemble a time from timesheet columns
| A | B | C | |
|---|---|---|---|
| 1 | Hours | Minutes | Time |
| 2 | 17 | 5 | 17:05 |
Result: 17:05
The separate numbers become a real time value that can be subtracted from a start time to get hours worked (formatted as hh:mm).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | An argument is negative and the total time would be negative, or an argument is above 32767. | Check the inputs; for subtracting time use A2-TIME(...) rather than negative arguments. |
#VALUE! | An argument is non-numeric text. | Convert with VALUE or clean the data. |
Tips
- TIME discards whole days:
TIME(25,0,0)= 01:00. Use=hours/24for durations longer than 24 hours. - Combine with a date by adding:
=DATE(2026,12,2)+TIME(14,30,0)gives a full date-time.
Google Sheets
TIME also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
TIME in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | ČAS |
| Danish | TID |
| Dutch | TIJD |
| Finnish | AIKA |
| French | TEMPS |
| German | ZEIT |
| Hungarian | IDŐ |
| Italian | ORARIO |
| Norwegian (Bokmål) | TID |
| Polish | CZAS |
| Portuguese (Brazil) | TEMPO |
| Portuguese (Portugal) | TEMPO |
| Russian | ВРЕМЯ |
| Spanish | NSHORA |
| Swedish | KLOCKSLAG |
| Turkish | ZAMAN |