SECOND Function

SECOND Function

SECOND Function

Extracts the second component from a valid Excel time value.

ExcelClash Team
PUBLISHED

Summary

The Excel SECOND function returns the second component of a time value as a whole number from 0 to 59.

SECOND is useful when you need to break a timestamp into parts, analyze precise log times, build second-based checks, or identify exact boundaries within a minute.

Purpose

Extract the second value

Pulls the second portion from a valid Excel time or date-time value.

Return Value

An integer from 0 to 59

Returns the second of the minute as a whole number.

Syntax

=SECOND(serial_number)

The argument is called serial_number because Excel stores times as decimal portions of a date value. In practice, you can pass a time, a date-time, a cell reference, or the result of another formula.

Arguments

  • serial_number - A valid Excel time or date-time value that contains the second you want to extract.

SECOND vs Related Time Functions

SECOND works alongside the other time-part extraction functions.

Function Returns Use When Example
SECOND Second of the minute You need the second part only =SECOND(A1)
MINUTE Minute of the hour You need the minute part =MINUTE(A1)
HOUR Hour of the day You need the hour part =HOUR(A1)
TEXT(A1,"ss") Formatted second text You need a display label instead of a numeric result "30"

Use SECOND when you need a numeric result for logic or analysis. Use TEXT when you only need a formatted display value.

Using SECOND

Microsoft documents that SECOND accepts times entered as text strings, decimal numbers, or formula results. That means it can work with values from NOW(), imported time strings, or date-time cells that Excel recognizes correctly.

Like other time functions, SECOND works on the underlying serial value, not just the way the cell looks on screen. So it can extract seconds from a full date-time value as long as Excel recognizes the input as valid time data.

A common use is building precise checks. For example, you might test whether an event happened exactly on a minute mark, or whether a timestamp lands on every 10-second checkpoint.

Example 1 - Extract the Second from a Time

The simplest use of SECOND is to pull the second number from a time value.

=SECOND("22:45:30")   // Returns 30

This is useful when you need only the second part and do not care about the hour or minute.

Check Answer
Challenge #1
Target: Sheet1!F1
Current Second

In cell F1, return the current second from NOW().

Example 2 - Extract the Second from a Stored Timestamp

SECOND is often used on time values already stored in logs or imported records.

=SECOND(B2)

If B2 contains 22:45:30, the result is 30. This makes the function useful for detailed time-based analysis.

Check Answer
Challenge #2
Target: Sheet1!F2
Extract Second

In cell F2, extract the second from the time in B2.

Example 3 - Build a Second-Based Logical Test

You can use SECOND inside a condition to identify specific timing checkpoints.

=MOD(SECOND(B2),10)=0

This returns TRUE when the second lands on a 10-second boundary such as 00, 10, 20, 30, 40, or 50. It is a useful pattern for monitoring and rule-based logic.

Check Answer
Challenge #3
Target: Sheet1!F3
Exact Minute Mark

In cell F3, test whether the second value in B2 is exactly 0.

Example 4 - Turn the Result into a Label

Combine SECOND with text when you want a display label instead of just a number.

=SECOND(B2)&"s"

This is useful for dashboards, compact summaries, or helper columns where a short text label is easier to read.

Check Answer
Challenge #4
Target: Sheet1!F4
Second Label

In cell F4, turn the second result from B2 into a short text label.

Conclusion Recap

  • Summary: SECOND returns the second component of a time value.
  • Output: It returns a whole number from 0 to 59.
  • Common uses: Precise timestamp analysis, logical tests, and helper columns.
  • Input flexibility: It can work with valid time text, decimals, and formula results.
  • Display tip: Use TEXT for formatting and SECOND for numeric logic.
  • Related functions: Use HOUR and MINUTE to extract other time parts.
Tactical Arena
Select Scenario:
Share SECOND Function!

Tell your friends about this post

Discussion

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster.

© 2026 ExcelClash, Inc. All rights reserved.