Fix an Excel SUM Formula Returning Zero or an Incorrect Total
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.

- 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.
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.
Convert Text Values to Numbers Before Summing
Use this method when values look like numbers but Excel does not recognize them as numeric.
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.
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.
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.
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).

Check the SUM Range, Filters, and Calculation Mode
Use these checks if the values are already numeric but the total is still unexpected.
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. Open the workbook: In WPS Spreadsheet, open the workbook and select the sheet containing the incorrect SUM formula.
- 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. 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. Calculate the total: In an empty cell, enter a SUM formula for the helper range, such as =SUM(E65:E142), and check the result.

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.




