Formula Errors

How to Fix Excel Time Totals Returning #VALUE! Error

Muhammad TalhaMuhammad Talha Nov 10, 2026 869 views

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.

How to Fix Excel Time Totals Returning #VALUE! Error
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.
Before you start

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.

Solution 1Recommended

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.

1
Convert text to numbers

If you used a TEXT function previously, wrap it in a VALUE() or TIMEVALUE() function to convert the output back to a numeric format.

2
Apply the SUM formula

Select the cell where you want the total and enter the standard sum formula, such as =SUM(J4:J36).

3
Format cells for over 24 hours

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.

Convert Text Results to Numeric Values and Use Standard SUM
Data Validation: Using Data Validation on your input cells to require a time format (like hh:mm) helps prevent manual entry errors that cause #VALUE!.
Easy Time Calculations in WPS Spreadsheet

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. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your workbook containing the time tracking data.
  2. 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. 3. Convert text formats instantly: Click the warning icon next to any text-formatted number and select 'Convert to Number'.
  4. 4. Calculate the total: Click AutoSum or type your =SUM() formula to instantly receive the correct time total without errors.
Fully compatible with Microsoft Excel formulas and .xlsx filesSmart cell formatting options specifically for time and date valuesBuilt-in error tracing to quickly identify text-formatted numbersFree, lightweight, and easy to use on Windows, Mac, and mobile
microsoft office alternative - wps office

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.