Calculation Issues

How to Fix Excel Timesheet Totals When Hours Exceed 24

Ayan MasoodAyan Masood Oct 22, 2026 869 views

Question details

The user needs to correct timesheet total calculations that reset or display incorrectly after surpassing 24 hours.

How to Fix Excel Timesheet Totals When Hours Exceed 24
Product
Excel
Device & OS
not provided
Scenario
Calculating total worked hours over a week or month in a timesheet.
Observed behavior
Total duration displays incorrectly because standard time formats reset to 0 after 24 hours instead of showing cumulative hours.
Before you start

Ensure your timesheet inputs are recognized as valid time values by Excel and check if you have any hidden rows that might interfere with your sum ranges.

Solution 1Recommended

Apply Custom Formatting for Cumulative Hours

Use the [h]:mm custom format to force Excel to display total hours beyond a 24-hour period.

By default, Excel treats time values as times of the day. When the sum of hours exceeds 24, Excel automatically rolls over to a new day, showing the remainder rather than the total. You can override this behavior by applying a specific custom number format.

1
Select the cells

Highlight the cells in your timesheet that contain the incorrect total hours.

2
Open Format Cells menu

Right-click the highlighted cells and choose "Format Cells" from the context menu, or press the Ctrl+1 shortcut on your keyboard.

3
Navigate to custom categories

Go to the "Number" tab in the dialog box and select "Custom" from the Category list on the left.

4
Enter the new format

In the "Type" field, enter [h]:mm and click OK to apply the cumulative time format.

Apply Custom Formatting for Cumulative Hours
Format Applied: The square brackets around the 'h' tell Excel to keep accumulating hours indefinitely instead of rolling over to the next day.
Efficient Spreadsheet Management

Easily Calculate Timesheet Hours with WPS Spreadsheet

WPS Spreadsheet provides seamless tools and formatting options to manage complex timesheets accurately, fully supporting Microsoft Excel formulas and custom time formats.

  1. 1. Open your file: Open your timesheet file in WPS Spreadsheet.
  2. 2. Format the total cells: Select the cells with total hours, right-click, and choose "Format Cells".
  3. 3. Apply cumulative format: Under the "Number" tab, select "Custom", input [h]:mm in the type box, and press OK to instantly display accurate total hours.
Fully compatible with Microsoft Excel (.xlsx) files and custom time formats like [h]:mm.Intuitive cell formatting and formula debugging tools.Free and lightweight office suite for seamless productivity.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show 2:00 instead of 26:00 for total hours?

Excel defaults to a standard clock time format. Once the total reaches 24 hours, it rolls over to a new day. Using the [h]:mm format prevents this reset and displays the true cumulative total.

Can I multiply my total hours by an hourly rate after formatting?

Yes, but you must multiply the total hours cell by 24 (e.g., =Total_Hours * 24 * Hourly_Rate). This is required because Excel mathematically stores time as a fraction of a 24-hour day, not as whole numbers of hours.

What if my time difference results in a negative number or ########?

Excel cannot display negative times by default and will show hash symbols instead. Ensure you are correctly subtracting the start time from the end time. If a work shift crosses midnight, use a formula like =(End_Time - Start_Time + (End_Time < Start_Time)) to calculate the correct duration.