MS Excel: SECOND function to extract second component
- Fakhriddinbek

- May 4
- 2 min read
The SECOND function in Excel allows you to extract the second component (0 to 59) from a time or a date-time value. This is especially useful for time tracking, timestamp breakdown, and any situation where seconds matter—such as logging system events or analyzing performance durations.

Syntax
=SECOND(serial_number)
Argument:
Excel stores dates and times as serial numbers. For example, 0.5 represents 12:00:00 PM, and the decimal part corresponds to the time of day.
Examples
Example 1: Basic Time Input
=SECOND("14:25:45")
Result: 45→ Extracts the second component from the time 14:25:45.
Example 2: Cell Reference
Assume A2 contains 9:03:17 AM
=SECOND(A2)
Result: 17
Example 3: Extract from Date-Time
If A3 contains 2025-05-04 18:22:59
=SECOND(A3)
Result: 59→ The date part is ignored; only the time’s second component is returned.
Example 4: Using NOW Function
=SECOND(NOW())
Result: The current second based on your system clock.
Sample Table
Tips & Notes
The result will always be an integer from 0 to 59.
Works with both text strings like "10:15:30" and date-time serial numbers.
If the input is a whole number (like 5), the second component is 0.
Related Functions
Summary Table
Conclusion
The SECOND function is a straightforward but valuable tool when precision timing is essential. Whether you're analyzing timestamps or building a custom time dashboard, SECOND helps isolate the exact time component you need.



Comments