Date

Building a time from three numbers

Definition

Building a time from hour, minute, and second in separate cells means giving TIME those three parts in that order.

Syntax

=TIME(hour, minute, second)

Arguments

Argument Meaning
hour The hour from 0 through 23.
minute The minute from 0 through 59.
second The second from 0 through 59.

Worked example

A ferry list stores hour, minute, and second in separate columns for each sailing.

A: Run B: Hour C: Minute D: Second
Eve 18 0 0
Late 21 15 0
Night 23 0 0

Formula: =TIME(B2,C2,D2)

Result: 0.75. 18 hours is three quarters of a 24-hour day, so the serial is 0.75.

Practice

Cell A2 holds 6. Cell B2 holds 0. Cell C2 holds 0. In D2, write a formula that builds a time from that hour, minute, and second.

  1. In D2, write a TIME formula for hour A2, minute B2, and second C2.
Step 1 of 2
Formulas here use English function names, such as SUM, and a period as the decimal separator, in every language.
Loading the sheet…

Related functions

TIME is the function that turns those three numbers into one time.

Common mistake

Putting minute first, as in =TIME(C2,B2,D2): 0 hours and 18 minutes is not 18:00, so the serial is not 0.75.

Related functions

These links are related functions.