Quick Answer

SECOND Function

Returns the second portion (0-59) of a time value.

✓ Excel✓ Google SheetsExcel All versions

Syntax

SECOND
(serial_number)

Parameters

ParameterDescriptionRequired
serial_numberA date-time serial (or a time fraction). The integer part is a date and the fractional part is the time; the second is taken from the fractional part.Required

Basic Example

Get the second from a time

=SECOND(TIME(12, 30, 45))
Result45

TIME(12,30,45) is 12:30:45 PM, so SECOND returns 45.

Advanced Examples

Example 1: Extract second from a date-time serial

A timestamp like 2024-01-15 12:30:00

SECOND reads the fractional time part

=SECOND(45305.520833)
Result: 0
The .520833 fraction equals 12:30:00 exactly, so SECOND returns 0.

Example 2: Seconds from a precise time

Capturing sub-minute precision

SECOND returns the seconds component

=SECOND(TIME(9, 15, 30))
Result: 30
9:15:30 AM has 30 seconds, so SECOND returns 30.

How SECOND Works

SECOND takes the fractional part of the serial (the time-of-day component), multiplies it by 86400 (seconds in a day), and returns the remainder after removing whole minutes, giving an integer from 0 to 59. The date portion is ignored.

1
Reference a time value
Point SECOND at a cell or expression that holds a time or date-time.
2
Read the second
The function returns an integer 0-59.

Important Notes & Limitations

  • SECOND ignores the date portion entirely.

  • A value with no time fraction (a whole number) returns 0.

  • It accepts only valid serials; text times must be converted first.

Common Errors & Fixes

#VALUE!The argument is text that Excel cannot parse as a time.

Fix: Convert the text to a real time serial first (e.g. with TIMEVALUE).

Returns 0 unexpectedlyThe serial is a whole number with no time part, or the time has zero seconds.

Fix: Make sure the value actually contains a non-zero second.

Download Practice File

Practice SECOND with Real Data

Download a sample CSV file with pre-populated data and practice exercises for the SECOND function. Works in both Excel and Google Sheets.

Works in Google SheetsCompatible with ExcelIncludes exercises

File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps

Frequently Asked Questions

Does SECOND work on a full date-time?
Yes, it reads only the time fraction, e.g. 2024-01-15 12:30:45 returns 45.
What is the maximum second returned?
The maximum is 59, because times are stored as fractions under 1.
Why do I get 0 for a whole-minute time?
Whole-minute times have a zero seconds component.