Excel function

SECONDfunction

Returns the second of a time as a number.

All versions
=SECOND("14:30:45")

Time8 chars

11
24
3:
43
50
6:
74
85

Change the time to "9:05" or "23:59:59". Without seconds, they are treated as 0. Try breaking it on purpose to see the errors.

Result

45

serial_number

The time to take the second from. In a real sheet this is a cell with a time, or NOW() or TIME().

What is the SECOND function?

=SECOND(serial_number)

SECOND returns only the second of a time as a number from 0 to 59.

You can pass a cell with a time, the result of TIME or NOW, or text such as "14:30:45". The part taken is highlighted in green.

SECOND is for times recorded down to the second, such as lap times or machine logs. Combined with MINUTE it turns a time into a number of seconds, which makes averages and differences easy to compare.

Arguments

serial_number
The time to take the second from. If it includes a date, only the time part is used.

SECOND examples

  1. Example 1. Take the second

    =SECOND("14:30:45")

    45.

  2. Example 2. From the current time

    =SECOND(NOW())

    The second of the current time.

  3. Example 3. Microsoft example

    =SECOND("4:48:18 PM")

    18. Only the seconds part is read, even for an afternoon time.

  4. Example 4. Lap times in seconds

    =MINUTE(A2)*60+SECOND(A2)

    Turns a time recorded as minutes:seconds into total seconds. Works for times under an hour.

    A2 (time)MINUTESECONDSeconds
    0:01:3513595
    0:02:0828128
    0:00:5905959

Common mistakes

FAQ

How do I put the parts back together?
Use TIME.
And the date part?
Use YEAR, MONTH and DAY.
How do I turn seconds back into a time?
=TIME(0, 0, 95) is 0:01:35.
How do I average lap times?
Average the times directly with =AVERAGE(A2:A10) and format the result as [m]:ss.