Formatting Issues

How to Display Total Hours Greater Than 24 in Excel

Elise WilliamsElise Williams Nov 11, 2026 868 views

Question details

The user needs to correctly display the sum of time values that exceed 24 hours without the total resetting to a daily clock value.

How to Display Total Hours Greater Than 24 in Excel
Product
Excel
Device & OS
not provided
Scenario
Summing multiple cells containing elapsed time to calculate total hours worked or duration.
Observed behavior
When the sum exceeds 24 hours, the standard h:mm format resets and only displays the remaining hours after full days are subtracted (e.g., 40 hours displays as 16 hours).
Before you start

Verify that your original time entries are formatted correctly as time values (e.g., 12:00) and not as plain text, otherwise they cannot be mathematically summed.

Solution 1Recommended

Apply Custom Number Format for Elapsed Hours

Use the bracketed hour format to force Excel to display total cumulative hours instead of the default 24-hour clock time.

By default, standard time formats in spreadsheets represent a specific time of day, which cycles every 24 hours. Wrapping the hour symbol in square brackets tells the program to calculate the absolute cumulative hours, preventing the rollover effect.

1
Select the target cell

Highlight the cell or range of cells containing the summed total time that currently displays the incorrect hour value.

2
Open the Format Cells dialog

Right-click the selected cell and choose 'Format Cells' from the context menu, or press the 'Ctrl + 1' keyboard shortcut.

3
Navigate to Custom formats

In the Format Cells window, go to the 'Number' tab and click on 'Custom' at the bottom of the Category list.

4
Enter the bracketed format

In the 'Type' text box, enter [hh]:mm (or [hh]:mm:ss if you need to track seconds) and click 'OK' to apply the new format.

Apply Custom Number Format for Elapsed Hours
Format Applied Successfully: Your cell will now accurately display hours beyond 24. For instance, a total of 40 hours will correctly show as 40:00 instead of 16:00.
Seamless Time Tracking

Calculate and Format Elapsed Time in WPS Spreadsheet

WPS Spreadsheet fully supports advanced custom number formatting, allowing you to sum and track time over 24 hours effortlessly. As a powerful data analysis tool, it handles complex calculations with full Excel compatibility.

  1. 1. Open your timesheet: Launch WPS Spreadsheet and open your existing .xlsx time tracking file.
  2. 2. Access cell formatting: Select your total time cell, right-click, and select 'Format Cells', or press Ctrl+1.
  3. 3. Apply cumulative format: Choose the 'Custom' category, type [hh]:mm in the input box, and hit OK to display total hours perfectly.
Seamlessly format cumulative time exceeding 24 hours using familiar bracket syntax.100% compatibility with Microsoft Excel (.xlsx) formats and formulas.Free, lightweight, and fast-loading across Windows, Mac, and Linux systems.Built-in spreadsheet templates for timesheets, payroll, and project tracking.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my sum of hours show up as a decimal number like 1.66?

This happens if the cell format is accidentally set to 'General' or 'Number' instead of 'Time'. In spreadsheet logic, 1 represents a full 24-hour day. Applying the [hh]:mm custom format will convert the decimal back into cumulative elapsed hours.

Can I format total minutes exceeding 60 in the same way?

Yes. You can track cumulative minutes without them rolling over into hours by placing square brackets around the minute symbol. Simply apply the custom format [mm]:ss to your total cell.

Does applying the [hh]:mm format change the underlying cell data?

No, changing the format only alters how the data is visually displayed. The underlying value remains a fraction of a 24-hour day, allowing you to continue performing accurate mathematical calculations, such as multiplying the time by an hourly wage.