Add up a week of hours and Excel quietly rolls past midnight — 30 hours shows as 6:00. The fix isn’t a formula, it’s a number format: square brackets [h]:mm let hours accumulate beyond 24.
[h]:mm it shows the true cumulative hours and minutes.
The example
Five daily durations that total more than a full day.
| A | B | |
|---|---|---|
| 1 | Day | Hours |
| 2 | Mon | 8:30 |
| 3 | Tue | 7:45 |
| 4 | Wed | 9:15 |
| 5 | Thu | 6:30 |
| 6 | Total | 32:00 |
The formula
The formula is an ordinary SUM — the magic is the format:
How it works
Excel stores time as a fraction of a day, so totals need a format that doesn’t reset at 24h:
- Each duration is a fraction:
8:30= 8.5/24 of a day. SUM adds the fractions correctly. - A normal
h:mmformat only shows the time-of-day part, dropping whole days — so 32 hours displays as 8:00. - The square brackets in
[h]:mmtell Excel “don’t roll over” — show all accumulated hours. - Apply it via Format Cells → Custom and type
[h]:mm(or[mm]:ssfor minutes:seconds).
Need a decimal for payroll? Multiply the total by 24: =SUM(B2:B5)*24 formatted as a number gives 32.0 hours — ready to multiply by an hourly rate.
Try it: interactive demo
Enter daily hours (h:mm), one per line.
Variations
Decimal hours for pay
Convert the day-fraction to hours:
Minutes:seconds
For stopwatch-style totals:
As text label
Embed the total in a sentence:
Pitfalls & errors
Missing brackets = wrong total. Plain h:mm wraps at 24 hours, so 32:00 shows as 8:00. Always use [h]:mm for sums.
Negative times show as ######. If an end time is before a start time (crossing midnight), the result goes negative and Excel can’t display it in time format. Add 1 to the end time when it crosses midnight.
Text entries don’t add. Hours typed as text (e.g. with a trailing space) are ignored by SUM. Make sure entries are real time values, right-aligned by default.
Practice workbook
Frequently asked questions
How do I add up hours past 24 in Excel?
How do I convert a time total to decimal hours?
Why does my time total show the wrong number?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class