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
Example 1. Take the second
=SECOND("14:30:45")45.
Example 2. From the current time
=SECOND(NOW())The second of the current time.
Example 3. Microsoft example
=SECOND("4:48:18 PM")18. Only the seconds part is read, even for an afternoon time.
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) MINUTE SECOND Seconds 0:01:35 1 35 95 0:02:08 2 8 128 0:00:59 0 59 59
Common mistakes
Times over 24 hours
SECOND looks only at the time within a day. For totals over 24 hours, such as hours worked, multiply the value by 24 to get hours.
Text formats
Text Excel cannot read as a time returns #VALUE!.
Typing 1:35
Excel reads 1:35 as 1 hour 35 minutes. For 1 minute 35 seconds type 0:01:35.
Expecting 60 or more
SECOND only returns 0 to 59. Total seconds are =A2*86400.
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.