Get the Second as a number (0-59) from a Time
=SECOND(serial_number)
| Parameter | Description |
|---|---|
serial_number |
A valid time in a format Excel recognizes. |
When given the time "10:45:17 AM", the SECOND function will return 17:
=SECOND("10:45:17 AM") // returns 17
With the time "2:19:36" in cell A1, SECOND will return 36:
=SECOND(A1) // returns 36
The formula below demonstrates how the TIME function can be used to create the time 9:30:45 in Excel:
=TIME(9,30,45)
If we wrap the SECONDS function around the TIME function, we get 45, as expected:
=SECOND(TIME(9,30,45)) // returns 45
To extract fractional seconds while maintaining precision, you can use a formula like this:
=MOD(C5*1440,1)*60