
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.
SECOND matters in models that care about fine timing detail. It is not needed for every workbook, but it becomes useful in logs, process timing, or imported timestamps where the last piece of time precision still needs to be checked or displayed separately.
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 C2, extract the second from the time in B2.
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 C3, extract the second from the time in B3.
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 C4, test whether the second value in B4 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 C5, turn the second result from B5 into a short text label.
SECOND is useful when you need the smallest time part in a normal timestamp breakdown. In this lesson, that meant pulling seconds from stored times, checking exact time boundaries, and turning the result into simple labels for reports.
Like HOUR and MINUTE, this function stays easy to read because it always returns one number. If the formula needs logic based on exact timing, SECOND is the right tool. If you only want the time to look different, formatting is usually enough.
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