What is the TIME function?
=TIME(hour, minute, second)TIME combines three numbers — hour, minute and second — into one time.
Excel treats a day as 1, so 12:00 is stored as 0.5. According to Microsoft, an hour above 23 is divided by 24 and the remainder used, and minutes and seconds above 59 roll over into the next unit.
Arguments
- hour
- A number from 0 to 32767.
- minute
- Above 59, it rolls over into hours.
- second
- Above 59, it rolls over into minutes.
TIME examples
Example 1. 2:30 PM
=TIME(14, 30, 0)14:30:00, a value of about 0.604.
Example 2. Extra minutes
=TIME(0, 750, 0)As in Microsoft's example, 12:30:00.
Example 3. Add time
=A2+TIME(1, 30, 0)Adds 1 hour 30 minutes to the time in A2.
Common mistakes
Showing 24 hours or more
TIME(27,0,0) is 3:00. To show times longer than a day, use the [h]:mm format.
The result looks like a decimal
Format the cell as time.
FAQ
- Get only the hour from a time?
- Use HOUR.
- Combine with a date?
- Add them: =DATE(2026,5,4)+TIME(14,30,0).