Download the example workbook
This tutorial will demonstrate how to calculate time differences in Excel & Google Sheets.
To calculate time differences in Excel simply subtract two times:
Note if you time difference returns a negative number you’ll see this:
To fix the output you can use the ABS Function to calculate the absolute value:
Hours, Minutes, and Seconds Between Times
Hours Between Times
To calculate the number of hours between times, subtract the times and multiply by 24 (24 hours in a day). To calculate only the number of full hours use the INT Function:
Minutes Between Times
To calculate the number of minutes between times do the same except multiply by 1440 (24 hours * 60 minutes):
Seconds Between Times
Multiply by 86,400 to calculate the number of seconds between times:
Display Time Difference
You can output a time difference as a string of text using the TEXT Function:
Easy Excel Automation
Add Excel automation to your workbook with just a few clicks.
Calculate Time Differences in Google Sheets
All of the above examples work exactly the same in Google Sheets as Excel.