
Extracts the second component from a valid Excel time value.
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.
Pulls the second portion from a valid Excel time or date-time value.
Returns the second of the minute as a whole number.
=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.
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.
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.
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.
In cell F1, return the current second from NOW().
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.
In cell F2, extract the second from the time in B2.
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.
In cell F3, test whether the second value in B2 is exactly 0.
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.
In cell F4, turn the second result from B2 into a short text label.
SECOND returns the second component of a time value.0 to 59.TEXT for formatting and SECOND for numeric logic.HOUR and MINUTE to extract other time parts.Tell your friends about this post