How to Use the SECOND Function in Excel

Today, we’ll explore the SECOND function in Excel and Google Sheets. This function is designed to retrieve the ‘seconds’ component from any given time value, making it particularly useful for extracting seconds from a timestamp.

SYNTAX

The syntax for the SECOND function is identical in both Excel and Google Sheets:

SECOND(serial_number)
  • serial_number is the time value from which you want to extract seconds.

EXAMPLES

Let’s examine some practical examples to better understand how the SECOND function operates:

Example 1

Extracting the seconds from a timestamp:

Timestamp Formula Result
8/14/2029 13:27:45 =SECOND(A2) 45
3/21/2023 09:08:17 =SECOND(A3) 17

Example 2

Calculating the average seconds across a range of timestamps:

Timestamp Formula
8/14/2029 13:27:45 =SECOND(A2)
3/21/2023 09:08:17 =SECOND(A3)
5/9/2025 21:54:30 =SECOND(A4)
Average: =AVERAGE(B2:B4)

In this example, we first extract the seconds from each timestamp using the SECOND function and then compute the average of these values.

CONCLUSION

The SECOND function in Excel and Google Sheets is an invaluable resource when handling time values and timestamps. It simplifies the extraction of the seconds component, enabling various calculations and analyses based on this data.

More information: https://support.microsoft.com/en-us/office/second-function-740d1cfc-553c-4099-b668-80eaa24e8af1

Other functions
Returns the serial number of a particular date
Calculates the number of days, months, or years between two dates This function is useful in formulas where you need to calculate an age
Converts a date in the form of text to a serial number
Converts a serial number to a day of the month
Returns the number of days between two dates
Calculates the number of days between two dates based on a 360-day year
Returns the serial number of the date that is the indicated number of months before or after the start date
Returns the serial number of the last day of the month before or after a specified number of months
Converts a serial number to an hour
Returns the number of the ISO week number of the year for a given date
Converts a serial number to a minute
Converts a serial number to a month
Returns the number of whole workdays between two dates
Returns the number of whole workdays between two dates using parameters to indicate which and how many days are weekend days
Returns the serial number of the current date and time
Returns the serial number of a particular time
Converts a time in the form of text to a serial number
Returns the serial number of today's date
Converts a serial number to a day of the week
Converts a serial number to a number representing where the week falls numerically with a year
Returns the serial number of the date before or after a specified number of workdays
Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days
Converts a serial number to a year
Returns the year fraction representing the number of whole days between start_date and end_date