Skip to content
Google Sheets

SECOND function in Google Sheets

Returns the second component of a specific time, in numeric format.

=SECOND(time)

SECOND syntax and parameters

One argument, one required.

  • timeanyRequired

    The time from which to calculate the second component. Must be a reference to a cell containing a date/time, a function returning a date/time type, or a number.

SECOND examples

Formulas you'll actually reuse.

  1. The seconds part of a 09:05:30 timestamp:

    =SECOND(B2)

    Result30

  2. A lap time in whole seconds from start and finish timestamps:

    =SECOND(C2 - B2) + MINUTE(C2 - B2) * 60

SECOND in Excel

Same name — your formula ports as-is.

Try SECOND in the playground

Edit the example — nothing to install.

Preloaded with the SECOND formula from Example 1 — change anything and watch it respond.

Loading the editor…