Time can be supplied to the SECOND function as text (e.g. “7:45:30 PM”) or as decimal numbers (e.g. 0.5, which equals 12:00 PM). To create a time value from scratch with separate hour, minute, and second inputs, use the TIME function. The SECOND function will “reset” to 0 every 60 seconds (like a clock). For example, given a time duration of 10 minutes, which is 600 seconds, the SECONDS function will return 0 (zero). To work with seconds values larger than 60, use a formula to convert time to decimal seconds.


When given the time “10:45:17 AM”, the SECOND function will return 17: The formula below demonstrates how the TIME function can be used to create the time 9:30:45 in Excel: If we wrap the SECONDS function around the TIME function, we get 45, as expected: Note: Excel stores dates as serial numbers and times as decimal numbers. For example, the time 12:00 PM is equal to 0.5 (one half-day), and the date Jan 1, 2000 12:00 PM is equal to the serial number 32526.5 in Excel. 

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.