Advanced Excel - TIME Function



Description

The TIME function returns the decimal number for a particular time. If the cell format was General before the Function was entered, the result is formatted as a date.

The decimal number returned by TIME is a value ranging from 0 (zero) to 0.99988426, representing the times from 0:00:00 (12:00:00 AM) to 23:59:59 (11:59:59 P.M.)

Syntax

TIME (hour, minute, second)

Arguments

Argument Description Required/ Optional
Hour

A number from 0 (zero) to 32767 representing the hour.

Any value greater than 23 will be divided by 24 and the remainder will be treated as the hour value.

Required
Minute

A number from 0 to 32767 representing the minute.

Any value greater than 59 will be converted to hours and minutes.

Required
Second

A number from 0 to 32767 representing the second.

Any value greater than 59 will be converted to hours, minutes, and seconds.

Required

Notes

  • Time values are a portion of a date value and represented by a decimal number (for example, 12:00 PM is represented as 0.5 because it is half of a day)

  • If the arguments evaluate to a negative time, TIME returns the #NUM! error value

  • If any of the supplied arguments are non-numeric values, TIME returns the #VALUE! error value

Applicability

Excel 2007, Excel 2010, Excel 2013, Excel 2016

Example

TIME Function
advanced_excel_date_time_functions.htm
Advertisements