logo
search
Calculation Issues

How to Fix Excel Calculated Hours Not Adding Correctly

WPS EditorWPS Editor Sep 25, 2026 870 views

Question details

The user needs to resolve an issue where Excel calculates an incorrect total for time values because some cells are recognized as text rather than numeric values.

How to Fix Excel Calculated Hours Not Adding Correctly
Product
Excel
Device & OS
not provided
Scenario
Summing multiple time intervals or hours in a spreadsheet using the SUM function.
Observed behavior
Excel returns an inaccurate total, ignoring certain cells entirely, or displays a #VALUE! error during direct addition because the time values are stored as text.
Before you start

Before troubleshooting, identify which specific cells are causing the issue by looking for time values that align to the left side of the cell by default, which is a common indicator of text formatting.

Solution 1Recommended

Identify and Convert Text Time Values to Numeric Data

Verify the data type of your time values using ISTEXT, re-enter incorrectly formatted times, and apply a custom format to the final sum.

The cell format alone does not determine whether the value inside is treated as text or numeric. If you input a time improperly (e.g., entering :29 instead of 0:29), Excel will categorize it as text, which the SUM function automatically ignores.

1
Test for text format

Click an empty cell and enter the formula =ISTEXT(A1) (replace A1 with your time cell). If the formula returns TRUE, your time value is currently stored as text.

2
Re-enter the time correctly

Select the cells stored as text and retype them using a valid numeric time format. For example, always use a leading zero for minutes, such as entering 0:29 rather than :29.

3
Calculate the sum

Once all your time values are confirmed as numeric (you can verify with =ISNUMBER(A1)), select a new cell and use the SUM function, such as =SUM(A1:A4), to add the times together.

4
Apply correct custom formatting

Right-click the cell containing your total sum, select 'Format Cells', navigate to the 'Custom' category, and enter [h]:mm to ensure hours exceeding 24 display correctly.

Identify and Convert Text Time Values to Numeric Data
Formatting Limitations: Simply changing the cell format from 'Text' to 'Time' using the ribbon will not convert existing text to numbers. You must either re-enter the data or use the 'Text to Columns' tool to force the conversion.
Seamless Data Calculation

Calculate Times and Hours Accurately in WPS Spreadsheet

WPS Spreadsheet provides robust calculation tools and precise custom formatting options to easily track, convert, and sum time values without hidden format errors.

  1. 1. Open your time log: Launch WPS Spreadsheet and open the workbook containing your time data.
  2. 2. Convert text to numbers: Highlight the problematic time cells, navigate to the 'Data' tab, click 'Text to Columns', and click 'Finish' to quickly convert them to numeric values.
  3. 3. Apply the SUM formula: Click the empty cell at the bottom of your column and enter =SUM(range) to calculate the total time.
  4. 4. Format for total hours: Right-click the total cell, select 'Format Cells', choose the 'Custom' category, and type [h]:mm to display cumulative hours.
Easily identify text vs. numeric data with built-in visual error checking.Apply advanced custom time formats like [h]:mm for precise time tracking.Fully compatible with Microsoft Excel formulas, functions, and formatting.Free, lightweight, and user-friendly spreadsheet solution for daily tasks.
QA img-9

Frequently Asked Questions

Why does the SUM function ignore some of my time entries?

The SUM function automatically ignores any cells that are formatted or stored as text. If a time was entered incorrectly, such as ":29" instead of "0:29", the spreadsheet treats it as a text string rather than a calculable number.

What format should I use to display time totals over 24 hours?

You should use the custom format [h]:mm. The square brackets around the "h" tell the spreadsheet to accumulate the total hours rather than resetting the clock to zero every 24 hours.

How can I quickly convert a large list of text-formatted times to numbers?

Select the entire column of times, go to the Data tab, and click on 'Text to Columns'. Without changing any settings in the wizard, click 'Finish'. This forces the application to re-evaluate the text data as numeric time values.