New Tool Radar

AI for Data & Spreadsheets

How to Check Time Durations Longer Than 24 Hours in Excel

Check time durations longer than 24 hours in Excel so they display as total hours, not clock time.

Schematic with three steps: Add the durations and read the total; Change the format to [h]:mm; Compare the formatted total with the expected.

Excel stores times as fractions of a day, so a duration of 30 hours displays as 06:00 when the cell uses a clock format: it shows the time of day, not the total. A work log or a machine runtime that totals more than a day will look six hours short for every day it runs. Format the total as [h]:mm so the hours keep counting past 24.

What you need

  • Excel with start and end times or durations
  • A total duration you expect to exceed 24 hours
  • The source times, to confirm the expected total

Step 1: Add the durations and read the total

Add the durations with a SUM and read the result in its current format. If the total looks far smaller than the hours you expect, the format is showing clock time, not elapsed time.

Step 2: Change the format to [h]:mm

Select the total cell, open Format Cells, Number, Custom, and enter [h]:mm as the format. The square brackets tell Excel to count hours past 24 instead of wrapping at midnight.

Step 3: Compare the formatted total with the expected hours

Read the total again and compare it with the hours you expect from the source. The two must agree; if the total is still short, check whether any single duration was entered as clock time instead of elapsed time.

Worked example: synthetic three-day work log

The table below is a synthetic example. It shows the expected result of checking durations past 24 hours; no workbook was opened.

Day Hours worked Running total
Monday 9 9
Tuesday 8 17
Wednesday 10 27
Total shown as clock time 03:00 27 hours wraps to 3
Total shown as [h]:mm 27:00 Correct total

Expected result (UNTESTED). the three days add to 27 hours, but a clock format shows 03:00; formatting the total as [h]:mm shows 27:00, the correct total. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A duration entered as 25:00 in a clock-format cell is read as 01:00 the next day, not 25 hours.
  • Subtracting an end time from a start time across midnight gives a negative result unless the dates are included.
  • A total in [h]:mm cannot be read as a time of day; do not use it for start times.
  • Times stored as text do not add at all; convert them to real times first.

Sources

See all