Date & time function

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)
ArgumentWhat it means
serial_numberRequiredA 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

C2fx=SECOND(B2)
ABC
1RunnerLap timeSeconds
2L. Moreau00:03:2727

Result: 27

The lap took 3 minutes 27 seconds; SECOND returns the 27.

2Seconds from a full timestamp

B2fx=SECOND(A2)
AB
1Log entrySeconds
22026-12-02 14:20:5959

Result: 59

Date, hour and minute are ignored; the timestamp ends in 59 seconds.

3Total seconds of a call

B2fx=A2*86400
AB
1Call durationSeconds
200:04:15255

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).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
CzechSEKUNDA
DanishSEKUND
DutchSECONDE
FinnishSEKUNNIT
FrenchSECONDE
GermanSEKUNDE
HungarianMPERC
ItalianSECONDO
Norwegian (Bokmål)SEKUND
PolishSEKUNDA
Portuguese (Brazil)SEGUNDO
Portuguese (Portugal)SEGUNDO
RussianСЕКУНДЫ
SpanishSEGUNDO
SwedishSEKUND
TurkishSANİYE