Quick Answer

TIME Function

Converts hour, minute, and second into a time fraction of a day.

✓ Excel✓ Google SheetsExcel All versions

Syntax

TIME
(hour, minute, second)

Parameters

ParameterDescriptionRequired
hourThe hour component, 0-23. Values of 24 or more roll over into whole days, keeping only the remainder (24 becomes 0, 25 becomes 1).Required
minuteThe minute component, 0-59. Values of 60 or more roll over into hours.Required
secondThe second component, 0-59. Values of 60 or more roll over into minutes.Required

Basic Example

Build a noon time value

=TIME(12, 0, 0)
Result0.5

12 hours is exactly half of a 24-hour day, so TIME returns the fraction 0.5.

Advanced Examples

Example 1: Hour overflow drops the day

A clock reading past midnight

Hours of 24+ wrap and discard the extra day

=TIME(25, 0, 0)
Result: 0.0416667
25 hours = 1 day and 1 hour; the day is dropped, leaving 1 hour = 1/24 approximately 0.0416667.

Example 2: Minute overflow rolls into hours

90 minutes past midnight

Minutes beyond 59 carry into the hour

=TIME(0, 90, 0)
Result: 0.0625
90 minutes = 1 hour 30 minutes = 1.5/24 = 0.0625.

How TIME Works

TIME converts the three integer inputs into the fraction of a day they represent (hour/24 + minute/1440 + second/86400). It first rolls over out-of-range components, seconds into minutes, minutes into hours, and hours modulo 24, so the final value always lies between 0 and 1.

1
Enter hour, minute, second
Provide integers for each component.
2
Apply a time format
Format the cell as time so the fraction shows as hh:mm:ss.
3
Combine with a date if needed
Add a date serial to anchor the time to a specific day.

Important Notes & Limitations

  • TIME returns only the fractional part of a day; hour values of 24+ discard the whole-day portion.

  • The result is a fraction and must be time-formatted to display correctly.

  • It cannot represent a time of exactly 24:00:00 (that wraps back to 0).

Common Errors & Fixes

Time shows as a decimalThe cell is in General number format.

Fix: Apply a time number format (e.g. h:mm:ss).

Unexpected value with large hoursHours of 24+ wrap modulo 24.

Fix: Use MOD or split into date and time if you need the day count as well.

Download Practice File

Practice TIME with Real Data

Download a sample CSV file with pre-populated data and practice exercises for the TIME function. Works in both Excel and Google Sheets.

Works in Google SheetsCompatible with ExcelIncludes exercises

File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps

Frequently Asked Questions

Why is the result 0.5 for noon?
Excel stores time as a fraction of a day; 12/24 = 0.5.
What does TIME(25,0,0) return?
0.0416667, because 25 hours wraps to 1 hour (the extra day is dropped).
Can I combine TIME with a date?
Yes, add a date serial, e.g. =DATE(2024,1,1)+TIME(12,0,0) for 2024-01-01 12:00 PM.