Calculation Issues

Calculate Start-to-Stop Time in Excel in Hours and Minutes

Adam DavisAdam Davis Nov 12, 2026 868 views

Question details

Calculate the elapsed duration between a start time and a stop time and display the result as total hours and minutes.

Calculate Start-to-Stop Time in Excel in Hours and Minutes
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet tracks task start and stop times, including tasks that may last longer than 24 hours or continue past midnight.
Observed behavior
The required result is an elapsed-time value in hours and minutes without resetting the hour count after 24 hours.
Before you start

Enter valid Excel time values in separate Start and Stop cells, such as 8:30 AM and 5:15 PM. Ensure the result cell is formatted as a duration rather than a standard clock time.

Solution 1Recommended

Subtract the Start Time From the Stop Time and Format Total Hours

Use this method when the stop time is later than the start time on the same day or when your entries include dates as well as times.

Excel stores times as portions of a day, so subtracting the start value from the stop value returns the elapsed duration. The custom format [h]:mm keeps counting total hours after 24 hours.

1
Enter the elapsed-time formula

Select the duration cell, such as C2, enter =B2-A2 where A2 contains the start time and B2 contains the stop time, then press Enter.

2
Open the Format Cells dialog

Right-click the duration cell and select Format Cells. In Excel, choose the Number tab and then select Custom.

3
Apply the total-hours format

In the Type box, enter [h]:mm and select OK. The brackets around h prevent the hour value from restarting at 0 after 24 hours.

4
Fill the formula down

Select the formula cell and drag the fill handle down to calculate durations for additional rows.

Subtract the Start Time From the Stop Time and Format Total Hours
Expected result: For a start time of 8:30 AM and a stop time of 5:15 PM, the formula returns 8:45 when formatted as [h]:mm.
Calculate elapsed time with WPS Spreadsheets

Calculate Start and Stop Time Durations in WPS Spreadsheets

WPS Spreadsheets supports the same elapsed-time formulas and custom number formats used for start-to-stop duration tracking. Enter your times, subtract the start value from the stop value, and use [h]:mm to show total hours and minutes clearly.

  1. 1. Open the worksheet in WPS Spreadsheets: Open WPS Office, select Spreadsheets, and open your .xlsx or .xls time-tracking workbook.
  2. 2. Add the duration formula: Select the duration cell, type =B2-A2 for same-day or dated entries, or type =MOD(B2-A2,1) for an overnight time-only entry, then press Enter.
  3. 3. Set the elapsed-time number format: Select the result cells, open Home > Number Format > More Number Formats, choose Custom, and enter [h]:mm.
  4. 4. Copy the calculation to other rows: Drag the fill handle from the formula cell down the duration column to calculate each task's elapsed time.
Use =B2-A2 or =MOD(B2-A2,1) to calculate task durations.Apply the [h]:mm custom format to display hours beyond 24.Open and edit Microsoft Excel .xlsx and .xls workbooks with compatible formulas and formatting.Work in a lightweight, familiar spreadsheet interface at no cost.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel duration display as 0:30 instead of 24:30?

The result cell is likely using a clock-time format such as h:mm. Right-click the cell, choose Format Cells > Custom, and use [h]:mm so Excel displays total elapsed hours.

How do I calculate time from 11 PM to 3 AM in Excel?

If the cells contain times only, use =MOD(B2-A2,1), with the 11 PM start time in A2 and the 3 AM stop time in B2. Format the result cell as [h]:mm.

Can Excel calculate a duration that lasts more than one day?

Yes. Enter complete date-and-time values for both the start and stop cells, use =B2-A2, and format the result with [h]:mm. For example, a 49-hour duration displays as 49:00.

How can I remove seconds from an elapsed-time result in Excel?

Open Format Cells > Custom and use [h]:mm instead of a format such as [h]:mm:ss. This hides seconds while retaining total hours and minutes.