logo
search
Calculation Issues

Fix Excel Hours Total Incorrect Even with [h]:mm Formatting

Phi Hung VoPhi Hung Vo Oct 1, 2026 868 views

Question details

The calculated total hours in the spreadsheet are incorrect, despite applying the custom [h]:mm format to display elapsed time beyond 24 hours.

How to Fix Incorrect Excel Hour Totals with [h]:mm Formatting
Product
Microsoft Excel
Device & OS
not provided
Scenario
Calculating total worked or elapsed hours using a sum formula in a spreadsheet.
Observed behavior
The sum function displays an incorrect time total, indicating underlying issues with formulas, hidden rows, or data being stored as text instead of numeric time values.
Before you start

Before troubleshooting, ensure all individual time entries are formatted consistently as time values and verify that there are no empty or hidden rows within your calculation range.

Solution 1Recommended

Convert Text Entries to Numeric Time Values

Excel cannot mathematically add time if the source cells are stored as text. Converting them to numeric time values resolves the summation error.

If you copied data from another system, the time values might be formatted as text. You can easily spot this if the time values are aligned to the left side of the cell by default.

1
Identify text values

Select your source time cells. If you see a small green triangle in the top-left corner of the cells, Excel is warning you about a number stored as text.

2
Convert using Value function

In an empty column next to your time entries, type the formula =VALUE(B2) (assuming B2 is your time cell) and press Enter. Drag the fill handle down to apply it to all rows.

3
Copy and paste as values

Copy the newly converted column, right-click the original time column, and select Paste Special > Values to overwrite the text formatting.

4
Reapply time formatting

Select the updated source cells, right-click and choose Format Cells. Under the Custom category, type [h]:mm and click OK to correctly display the values.

Verification Tip: Once converted, your SUM formula at the bottom should automatically update and display the correct total hours.
Time Tracking Mastery

Calculate Time Accurately with WPS Spreadsheet

WPS Spreadsheet makes complex time calculations seamless, accurately processing durations over 24 hours without unexpected formatting errors. Its intuitive interface lets you effortlessly manage total hours, pay rates, and schedules.

  1. 1. Open your file: Launch WPS Spreadsheet and open your existing time-tracking workbook.
  2. 2. Input the total formula: Select your total cell and type the standard =SUM() formula covering your time entries.
  3. 3. Apply custom format: Right-click the total cell, choose Format Cells, select Custom, type [h]:mm, and click OK to display cumulative hours seamlessly.
Fully compatible with Microsoft Excel's [h]:mm custom time formatAccurate built-in formulas including SUM, TIME, and VALUEClean, lightweight interface for faster spreadsheet processingFree to use across Windows, Mac, and mobile devices
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel time total reset after 24 hours?

If you are using the standard h:mm format, Excel treats the total as a time of day and resets to zero after 24 hours. To display elapsed or cumulative time over 24 hours, you must use the custom format [h]:mm.

How can I convert total time to decimal hours to calculate pay?

To convert a time total to decimal hours, multiply the cell containing the total time by 24 (e.g., =A1*24). Ensure the result cell is formatted as a General or Number format, not as Time.

Why do I see ##### in my time total cell?

The ##### error usually occurs if the column width is too narrow to display the total, or if a calculation results in a negative time value, which Excel's default date system cannot display.

Can space characters in my time cells cause the SUM formula to fail?

Yes. If there are trailing or leading spaces in your time entry cells, Excel will treat them as text rather than numerical time values, causing the SUM formula to ignore those cells.