The SECOND function in Google Sheets extracts the seconds component from a given time value, returning a number between 0 and 59. It's a simple way to break time values down into their individual parts. Dive into our comprehensive guide to master its application.
Parameters
time: The time value from which to extract the seconds component.
Step-by-Step Tutorial
-
Extracting seconds from a time value:
- Example:
=SECOND("6:45:30 PM") - Result:
30
- Example:
-
Extracting seconds from a cell reference:
- Example: If
A1contains a timestamp of2:15:09 AM, then=SECOND(A1)returns9.
- Example: If
Use Cases and Scenarios
- Time Tracking: Break down logged timestamps into hours, minutes, and seconds for detailed reporting.
- Data Cleaning: Extract and validate the seconds portion of imported time data.
- Scheduling Tools: Build custom time-based calculations that depend on second-level precision.
Related Functions
HOUR: Returns the hour component of a specific time.MINUTE: Returns the minute component of a specific time.TIME: Converts hour, minute, and second into a time value.