ExcelFunctions.net Logo

The Excel SECOND Function

Home » Excel-Built-In-Functions » Excel-Date-And-Time-Functions » Excel-Second-Function
Search this site:
Custom Search
Related Functions: 

Basic Description

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

The syntax of the Datevalue function is :

SECOND( serial_number )

where the serial_number argument is the time from which you want to extract the seconds component. This can be supplied to the function either directly (as a text representation of a time or as a decimal value), as a reference to a cell containing a time, or as a time value returned from another function or formula.

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


Second Function Examples

The following spreadsheet shows the Excel Second function applied to several different times. The spreadsheet on the left shows the format of the functions and the spreadsheet on the right shows the results.

 Formulas:
Examples of use of the Excel Second Function
 Results:
Excel Second Function Results

Further information and examples of the Excel Second function can be found on 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.




Valid XHTML 1.0 Transitional
Disclaimer Privacy Policy

Copyright © 2008-2011 ExcelFunctions.net