Date & Time

SECOND Formula

SECOND extracts the seconds component (0-59) from a time or datetime value. It is used for precise time analysis, performance timing, and decomposing timestamps into their individual components.

Syntax

SECOND(serial_number)
ParameterDescription
serial_number Parameter of the SECOND function.
Try SECOND in Viztab — free, no signup

Examples

Get seconds

Formula
=SECOND("3:45:30 PM")
Returns 30 — the seconds portion of the time value.

Precise timestamp analysis

Formula
=HOUR(A1) & ":" & TEXT(MINUTE(A1),"00") & ":" & TEXT(SECOND(A1),"00")
Reconstructs a time string like "15:45:30" from a datetime. TEXT ensures two-digit formatting for minutes and seconds.

Sub-minute precision

Formula
=IF(SECOND(A1)>0, "Has seconds", "Exact minute")
Checks whether a time has sub-minute precision. Useful for cleaning timestamp data that should be rounded to whole minutes.

Common Errors

#VALUE!

Occurs when the argument cannot be interpreted as a time or datetime value.

Tips

Returns 0-59

SECOND always returns an integer from 0 to 59. Milliseconds are not captured by this function.

Rarely used alone

SECOND is typically used alongside HOUR and MINUTE when decomposing time values. Most business reporting doesn't need second-level granularity.

Strip seconds from time

=TIME(HOUR(A1), MINUTE(A1), 0) removes the seconds component from a time value, rounding down to the nearest whole minute.

Try SECOND in Viztab

Import your data and use SECOND with 370+ other formulas. No signup required.

Open Viztab

Related Formulas