Excel TIME Function

This Excel Tutorial demonstrates how to use the Excel TIME Function in Excel to calculate a time, with formula examples.

TIME Function Description:

The TIME Function Returns the time from a hour, minute, and second.

Formula Examples:

time function examples

Example Formula Result
Simple Date =TIME(C5,D5,E5) 0.208333333333333
Negative Minutes =TIME(C6,D6,E6) 0.206944444444444
Minutes > 59 =TIME(C7,D7,E7) 0.252083333333333
Negative Seconds =TIME(C8,D8,E8) 0.208159722222222
Seconds > 59 =TIME(C9,D9,E9) 0.20931712962963

Syntax and Arguments:

The Syntax for the TIME Formula is:

Function Arguments ( Inputs ):

hour – An hour between 0-23. Example: 13.

minute – A minute between 0-59. Example: 13.

second – An hour between 0-23. Example: 13.

Additional Notes

Simply enter numbers corresponding to the Hour, Minute, and Second of the time.

Minutes and seconds can be greater than 59 or less than 0.

=time(8,0,0) returns 8:00:00 AM.
From this starting point you can add or subtract minutes or seconds.

=time(8,-1,-1) returns 7:58:59 AM.

=time(8,61,61) returns 9:02:01 AM.

The result of the TIME Function may appear as a decimal number. Change the cell Number Formatting to TIME to display the time:
time formatting excel shortcut

TIME Examples in VBA

You can also use the TIME function in VBA. Type:
For the function arguments (hour, etc.), you can either enter them directly into the function, or define variables to use instead.

Return to the List of all Functions in Excel

How to use the TIME Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:
After entering it in the cell, notice how the AND formula inputs appear below the cell:
time formula syntax
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=TIME(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
how to use the time function in excel

For more information about the TIME Formula visit the
Microsoft Website.

Posted in