How to Use TIME Function in Excel (Video in Khmer)

Learn how to use TIME function in Excel step-by-step to build real time values from hour, minute, and second numbers.

Advertisement
Formula
=TIME(hour, minute, second)

Hello everyone! Today I show you very easy step-by-step how to use TIME() function in Microsoft Excel.

TIME function help you build a real Excel time value from 3 separate numbers: hour, minute, and second. Very useful when your hour, minute, second are in separate cells and you want to combine them into one proper time!

📚 Related Tutorial: Want to extract hour, minute, second from a time? Check out How to Use HOUR, MINUTE, and SECOND Functions in Excel!

🛠️ How TIME Function Work?

The TIME function take 3 numbers and combine them into one real Excel time value.

Formula Syntax:

=TIME(hour, minute, second)
ParameterMeaningExample
hourHour number from 0 to 23 (24-hour format)14 (2 PM)
minuteMinute number from 0 to 5945
secondSecond number from 0 to 5930

📺 Example #1: Build a Time from Numbers

If you want to create the time 2:45:30 PM (14 hours, 45 minutes, 30 seconds):

=TIME(14, 45, 30)
  • Result: 2:45:30 PM (or 14:45:30 in 24-hour format)

For 9:00:00 AM:

=TIME(9, 0, 0)
  • Result: 9:00 AM
Advertisement

📺 Example #2: Build a Time from Separate Cells

If your data has:

  • Cell A2 = Hour → 14
  • Cell B2 = Minute → 45
  • Cell C2 = Second → 30
=TIME(A2, B2, C2)
  • Result: 2:45:30 PM

This is very useful when you import data from other system and hour, minute, second come in separate columns!


📺 Example #3: Add Hours or Minutes to Existing Time

Use TIME to add extra hours or minutes to a time in cell A2:

Add 2 hours and 30 minutes to a time:

=A2 + TIME(2, 30, 0)
  • If A2 = 9:00 AM, result = 11:30 AM

Add 45 minutes to current time:

=NOW() + TIME(0, 45, 0)
  • Result is current time plus 45 minutes!

💡 Easy Pro Tips for TIME Function

  1. Minute Overflow Is OK: If you enter MINUTE = 90, Excel automatic convert to 1 hour 30 minutes. =TIME(0, 90, 0) gives 1:30:00 AM. Very useful for time calculation!
  2. Format Cell Correctly: After typing TIME formula, make sure cell format is set to Time format. If it show decimal number like 0.614583, right-click cell → Format Cells → Choose Time format.
  3. Calculate Time Difference: Want to find how many hours between start and end time?
    =TEXT(B2 - A2, "h:mm")
    
    Or if difference more than 24 hours:
    =TEXT(B2 - A2, "[h]:mm")
    
Found this tutorial helpful? Share it with colleagues:
Advertisement