SECOND

SECOND(serial_number)

Returns the number of seconds as an integer given a date serial number.

serial_numberThe time that contains the seconds you want to find.

REMARKS
* This function returns a number between 0 and 59.
* The "serial_number" can be a time, value, cell reference or a text string in a time format.
* Times may be entered as text strings within quotation marks, as decimal numbers or as results of other formulas or functions.
* If "serial_number" < 0, then #NUM! is returned.
* If "serial_number" is not a valid time or date, then #VALUE! is returned.
* If you want to enter a static time that will not change or update, use the shortcut key (Ctrl + Shift + ;).
* You can use the HOUR function to return the hour as an integer given a date serial number.
* You can use the MINUTE function to return the minute as an integer given a date serial number.
* You can use the TIME function to return the time as a decimal given the hour, minute, second.
* You can use the TIMEVALUE function to return the time as a decimal given a time in text format.
* The equivalent VBA function is VBA.SECOND
* For the Microsoft documentation refer to support.microsoft.com

 AB
1=SECOND(B1) = 1511:30:15
2=SECOND("11:30:15") = 15=NOW() = 07:35:38
3=SECOND(B2) = 38=NOW() = 44786.316
4=SECOND(0.678) = 19 
5=SECOND(TIME(15,10,55)) = 55 
6=SECOND(TIMEVALUE("6:45:22 PM")) = 22 
7=SECOND("1 Jan 2022 11:30:15") = 15 
8=SECOND(0) = 0 
9=SECOND("12:00:10 PM") = 10 
10=SECOND(-10) = #NUM! 
11=SECOND("some text") = #VALUE! 


© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited Top