How to Fix Excel Time Totals Returning #VALUE! Error
Question details
The user needs to prevent time-total formulas from failing and showing an error when adding up a mixture of calculated times, manual entries, and text-formatted values.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Summing multiple time durations where the data range contains mixed formats, such as text strings and numeric values.
- Observed behavior
- The summation formula returns a #VALUE! error instead of the accurate total time.
Verify that your time entries are typed correctly (e.g., entering '4:17' instead of '417') and check that there are no hidden spaces within the cells you are trying to calculate.
Convert Text Results to Numeric Values and Use Standard SUM
The #VALUE! error usually occurs when arithmetic formulas try to process text. Converting text to numeric time values resolves the calculation error.
Formulas like TEXT() convert numeric times into text strings, which breaks arithmetic calculations and SUMPRODUCT formulas. You must ensure all durations are stored as true numeric time values.
If you used a TEXT function previously, wrap it in a VALUE() or TIMEVALUE() function to convert the output back to a numeric format.
Select the cell where you want the total and enter the standard sum formula, such as =SUM(J4:J36).
Select the total cell, right-click and choose 'Format Cells'. Go to the Custom category and enter [h]:mm to ensure totals exceeding 24 hours display correctly.

Use SUMPRODUCT for Mixed Blank and Formula Cells
If you have a complex range with blanks or mixed formula outputs, you can bypass the error by using an advanced SUMPRODUCT array formula.
Calculate Time Totals Easily with WPS Office
WPS Spreadsheet offers smart error-checking and seamless formula handling to avoid common #VALUE! errors when working with times. It is the perfect, lightweight alternative for analyzing complex data.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your workbook containing the time tracking data.
- 2. Highlight and format the range: Select your input cells and total cells, right-click, select 'Format Cells', and apply the Custom format '[h]:mm'.
- 3. Convert text formats instantly: Click the warning icon next to any text-formatted number and select 'Convert to Number'.
- 4. Calculate the total: Click AutoSum or type your =SUM() formula to instantly receive the correct time total without errors.

Frequently Asked Questions
Why does my time sum show a lower number than expected?
By default, Excel's standard time format resets to zero after 24 hours. To display accumulated hours beyond 24, you must apply a custom format using square brackets around the hour: [h]:mm.
What exactly causes the #VALUE! error in time formulas?
The #VALUE! error happens when you perform mathematical operations on cells containing text instead of numbers. Even if a cell looks like a time (e.g., '12:00'), it might be stored as text due to formatting, typos, or functions like TEXT().
How can I quickly check if my time values are formatted as text?
By default, text values align to the left side of a cell, while numeric time values align to the right. Additionally, you can use the =ISTEXT(cell) formula; if it returns TRUE, the time is stored as text.




