The Excel SECOND Function

Function Description

The Excel Second function returns an integer representing the second component of a supplied Excel time.

The syntax of the function is:

SECOND( serial_number )

where the serial_number argument is the time from which you want to extract the second component. This may be supplied to the function as either:

Note that, if the serial_number argument is composed of a date and time, the date part of the argument is ignored by the Second function.


Second Function Examples

Four examples of the Excel Second function are shown in column B of the following spreadsheet.

 Formulas:
  A B
1   =SECOND( "13:35:55" )
2 13:35:55 =SECOND( A2 )
3 08:17:00 =SECOND( A3 )
4 12/09/2011 08:17:23 =SECOND( A4 )
 Results:
  A B
1   55
2 13:35:55 55
3 08:17:00 0
4 12/09/2011 08:17:23 23

For further information and examples of the Excel Second function, see the Microsoft Office website.


Second Function Error

If you get an error from the Excel Second Function, this is likely to be the #VALUE! error:

Common Error
#VALUE! - Occurs if the supplied serial_number is not a valid Excel time.