In this tutorial, you will learn how to calculate time in Google Sheets.
How to Calculate Time in Google Sheets
Have you ever wanted to calculated the time elapsed between two specific times? For example, you may have a tracker that logs the time employees time in and time out of work. You may want to know which employees have been prone of underworking or overworking.
Google Sheets allows you to easily find the duration between two times by using the subtraction operation.
In this guide, we will explain how to compute for the time in Google Sheets. We will also explain how to convert the result into different units of time such as hours, minutes, and second.
How to Compute the Time in Google Sheets
Here’s how to compute the time in Google Sheets.
We’ll start by understanding how to calculate the difference between two time values. First, the user must ensure that both time values are properly formatted.
We can find the Time number formatting in the More Formats shortcut in the toolbar.
Next, select an empty cell where we will place the result of our calculation.
The simplest way to find the difference between two time values is by using the subtraction operator.
To ensure that the result is a positive number, we’ll subtract the start time from the end time value.
You may have noticed that the time duration is written as a time format as well. We can change the number formatting to Duration to display the right values.
After applying the proper format, we can now determine that the duration between the start time and end time is about an hour and 44 minutes.
Alternatively, we can use the TEXT function to automatically convert the difference into our preferred format.
We can convert the time duration to hours by multiplying the result by 24.
We can convert the time duration to minutes by multiplying the result by 24 and multiplying once more by 60.
We can convert the time duration to seconds by multiplying the result by 60, 60 again, then 24.
We can retrieve each individual time unit from the time duration by using the HOUR, MINUTE, and SECOND
This guide should be everything you need to calculate time in Google Sheets.
You may make a copy of this example spreadsheet to test it out on your own.