Date & time function

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)
ArgumentWhat it means
hourRequiredHours, 0–32767. Values of 24 and above wrap around (24 becomes 0).
minuteRequiredMinutes, 0–32767. Values above 59 roll into hours, so 90 minutes = 1:30.
secondRequiredSeconds, 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

A1fx=TIME(9,30,0)
A
109: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

B2fx=A2+TIME(0,90,0)
AB
1Meeting startEnds
208:4510: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

C2fx=TIME(A2,B2,0)
ABC
1HoursMinutesTime
217517: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).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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/24 for 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.

LanguageFunction name
CzechČAS
DanishTID
DutchTIJD
FinnishAIKA
FrenchTEMPS
GermanZEIT
HungarianIDŐ
ItalianORARIO
Norwegian (Bokmål)TID
PolishCZAS
Portuguese (Brazil)TEMPO
Portuguese (Portugal)TEMPO
RussianВРЕМЯ
SpanishNSHORA
SwedishKLOCKSLAG
TurkishZAMAN

Recipes that use TIME