HomeMicrosoft OfficeMicrosoft ExcelExcel: Calculating Elapsed Time

Excel: Calculating Elapsed Time

To create a formula that calculates the amount of time elapsed between two different times of the day, subtract the starting time from the ending time. This tech-recipe describes how to accomplish this.

Calculating the time that has elapsed between a starting and ending time requires a simple formula. For example, you can enter a person’s clock-in time in cell B12 and his or her clock-out time in C12. In cell D12, you would enter the following subtraction formula:


Excel then returns the difference in cell D12 as a decimal value representing what fraction that difference represents of an entire day (that is, a 24-hour period). If, for example, cell B12 contains the starting time of 9:00 am and cell C12 contains an ending time of 5:00 pm, Excel returns the following decimal value in cell D12:

8:00 AM

To convert this time of day into its equivalent decimal number, you convert the time format automatically given to it by the General format Ctrl+Shift+~ or by right-clicking on the cell and selecting Format Cells and then selecting the General format, which displays the following result in cell D14:


To convert this decimal number (representing the fraction of an entire day) into the number of hours that have elapsed, simply multiply this result by 24 as in =D12*24, which gives you a result of 8 hours or modify your formula to =(C12-B12)*24.

Rob Rogers
Rob Rogers
Once a prolific author here on Tech-Recipes, Rob has moved on to greener pastures.


Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular

Recent Comments

Cleveland Furia on How to Clear Google Activity
Sid Wohlfarth on How to Clear Google Activity
Riley Magsayo on How to Clear Google Activity
สมัครรับเครดิตฟรี ทันที on How to improve Remote Desktop Protocol Performance
Neal Wangstad on How to Clear Google Activity
Slavcho Andov on How to install Ubuntu
Slavcho Andov on How to fix bad sectors
Sheraz Ali on How to Backup Android