Formula Errors

Fix an Excel SUM Formula Returning Zero or an Incorrect Total

Muhammad TalhaMuhammad Talha Dec 2, 2026 869 views

Question details

The user needs to determine why an Excel SUM formula returns zero or an incorrect total and make it calculate the intended values.

Fix an Excel SUM Formula Returning Zero or an Incorrect Total
Product
Microsoft Excel
Device & OS
not provided
Scenario
Summing a range that may contain imported values stored as text or values with hidden spaces and nonprinting characters.
Observed behavior
The SUM formula returns zero or a total that does not match the expected result.
Before you start

Identify the range used by your SUM formula and choose an empty column for testing or cleaning values. Check whether the values were imported, since imported numbers can contain hidden characters or be stored as text.

Solution 1Recommended

Convert Text Values to Numbers Before Summing

Use this method when values look like numbers but Excel does not recognize them as numeric.

1
Test a value

In an empty cell, enter =ISNUMBER(D65), replacing D65 with a cell from your SUM range. FALSE means the tested value is not stored as a number.

2
Convert the range

Select the affected cells. If a warning icon appears, click it and choose Convert to Number. Alternatively, select Data > Text to Columns and click Finish to convert suitable numeric text.

3
Clean imported characters

If conversion does not work, enter =VALUE(TRIM(CLEAN(SUBSTITUTE(D65,CHAR(160)," ")))) in an empty helper column and fill it down alongside the affected range. This replaces nonbreaking spaces and removes common nonprinting characters before conversion.

4
Sum the converted values

Enter =SUM(D65:D142) if you converted the original cells. If you used a helper column, sum that column instead, such as =SUM(E65:E142).

Convert Text Values to Numbers Before Summing
Check conversion errors: If the helper formula returns an error, inspect the original value for unexpected text, symbols, or number separators that Excel does not recognize.
Fix SUM totals in WPS Spreadsheet

Clean Text Numbers and Calculate Totals in WPS Spreadsheet

Open the workbook in WPS Spreadsheet, test whether values are numeric, and use a helper column to clean imported text before summing the results.

  1. 1. Open the workbook: In WPS Spreadsheet, open the workbook and select the sheet containing the incorrect SUM formula.
  2. 2. Test a source value: In an empty cell, enter =ISNUMBER(D65), replacing D65 with a cell from your range. A FALSE result indicates that the value is not numeric.
  3. 3. Clean the values: In an empty helper column, enter =VALUE(TRIM(CLEAN(SUBSTITUTE(D65,CHAR(160)," ")))) and fill the formula down beside the source values.
  4. 4. Calculate the total: In an empty cell, enter a SUM formula for the helper range, such as =SUM(E65:E142), and check the result.
Test values with ISNUMBER and sum a cleaned rangeUse familiar spreadsheet formulas to handle imported dataOpen and edit Microsoft Excel XLSX and XLS filesWork in a familiar, easy-to-use spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does SUM return zero when the cells look like numbers?

The values may be stored as text, which SUM ignores in referenced cells. Enter =ISNUMBER(D65) in an empty cell to test one value, then use the warning icon's Convert to Number option or Data > Text to Columns to convert suitable values.

Does SUM include filtered or hidden rows?

Yes. SUM includes numeric values in filtered and hidden rows within its referenced range. To total visible rows instead, consider SUBTOTAL, such as =SUBTOTAL(109,D65:D142).

How can I remove nonbreaking spaces from imported numbers?

Use a helper formula such as =VALUE(TRIM(SUBSTITUTE(D65,CHAR(160)," "))) and fill it down. Then sum the converted helper cells.

Why doesn't my Excel total update after I change a value?

The workbook may be in manual calculation mode. Go to Formulas > Calculation Options and select Automatic, then check the total again.