SECOND function
Returns the seconds (0 to 59) from a time or date-time value.
Available in All versions of Excel (Windows and Mac), Excel for Microsoft 365, Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
SECOND(serial_number)| Argument | What it means | |
|---|---|---|
serial_number | Required | A time, date-time or time-like text such as "00:03:27". |
Returns: A whole number from 0 to 59.
How SECOND works
SECOND extracts the seconds part of a time value. It completes the trio with HOUR and MINUTE, and is mainly useful with precise timestamps: lap or race times, call durations from a phone system, machine logs, or any data recorded to the second.
Like its siblings, SECOND looks only at the clock part, so it never exceeds 59. To turn a whole duration into seconds multiply by 86,400 (the number of seconds in a day) rather than combining HOUR, MINUTE and SECOND, which would ignore whole days.
Examples
1Seconds part of a lap time
| A | B | C | |
|---|---|---|---|
| 1 | Runner | Lap time | Seconds |
| 2 | L. Moreau | 00:03:27 | 27 |
Result: 27
The lap took 3 minutes 27 seconds; SECOND returns the 27.
2Seconds from a full timestamp
| A | B | |
|---|---|---|
| 1 | Log entry | Seconds |
| 2 | 2026-12-02 14:20:59 | 59 |
Result: 59
Date, hour and minute are ignored; the timestamp ends in 59 seconds.
3Total seconds of a call
| A | B | |
|---|---|---|
| 1 | Call duration | Seconds |
| 2 | 00:04:15 | 255 |
Result: 255
SECOND alone would give 15. Multiplying the duration by 86,400 gives the full length: 4 × 60 + 15 = 255 seconds (cell formatted as General).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#VALUE! | The argument is text that is not a valid time. | Check the format, e.g. "0:04:15". |
Tips
- Excel stores times to about a thousandth of a second; to display fractions of seconds use the custom format
hh:mm:ss.000. - Use
TIME(0,0,SECOND(A2))to rebuild just the seconds as a time value.
Google Sheets
SECOND also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
SECOND in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | SEKUNDA |
| Danish | SEKUND |
| Dutch | SECONDE |
| Finnish | SEKUNNIT |
| French | SECONDE |
| German | SEKUNDE |
| Hungarian | MPERC |
| Italian | SECONDO |
| Norwegian (Bokmål) | SEKUND |
| Polish | SEKUNDA |
| Portuguese (Brazil) | SEGUNDO |
| Portuguese (Portugal) | SEGUNDO |
| Russian | СЕКУНДЫ |
| Spanish | SEGUNDO |
| Swedish | SEKUND |
| Turkish | SANİYE |