How to Fix Excel SUM Function Returning Zero Instead of Adding Values
Question details
The user is experiencing an issue where the SUM function in Excel returns a result of zero instead of the actual sum of the selected values.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Adding up a range of cells using the SUM formula.
- Observed behavior
- The SUM formula outputs 0, typically because the source numbers are formatted or stored as text, contain hidden characters, or calculation is set to manual.
Before troubleshooting, verify that your calculation options are set to 'Automatic' in the Formulas tab, as manual calculation can cause formulas to not update when data changes.
Convert Text to Numbers Using Text to Columns
This is the fastest way to convert a column of numbers stored as text back into actual numbers so the SUM function can read them.
When data is imported from other systems, numbers are often formatted as text. The Text to Columns wizard can quickly re-evaluate these cells as numbers without needing complex formulas.
Highlight the range of cells containing the numbers you want to sum.
Go to the 'Data' tab on the ribbon and click on 'Text to Columns'.
In the wizard that appears, simply click the 'Finish' button without changing any settings.
Check your SUM formula again; it should now display the correct total.

Use SUMPRODUCT and VALUE Functions
If you don't want to alter the original data, you can use a formula combination to convert text to numbers on the fly.
Multiply Values by 1 Using Paste Special
A quick trick to force Excel to evaluate text as numbers by performing a mathematical operation.
Fix Formula Errors Quickly with WPS Spreadsheet
WPS Office provides a highly compatible and intuitive spreadsheet tool that easily handles data formatting issues. You can quickly convert text to numbers and calculate sums without errors.
- 1. Open your file: Open your spreadsheet document in WPS Office.
- 2. Select the problematic cells: Highlight the cells with the green triangle in the corner, which indicates numbers are stored as text.
- 3. Click the warning icon: Click the small exclamation mark icon that appears next to your selection.
- 4. Convert the data: Select 'Convert to Number' from the drop-down menu.
- 5. Check the result: Your SUM formula will instantly update with the correct numerical total.

Frequently Asked Questions
How can I check if my cells are formatted as text?
You can use the ISTEXT or ISNUMBER functions. For example, typing =ISTEXT(A1) will return TRUE if the cell contains text, and =ISNUMBER(A1) will return TRUE if it is recognized as a number.
Why do my numbers have a leading apostrophe?
A leading apostrophe is often added when data is imported from other software or databases to force the spreadsheet to treat the entry as text. Removing the apostrophe will convert it back to a number.
Does the calculation mode affect the SUM function?
Yes. If your calculation mode is set to 'Manual', formulas will not update automatically when you change the data. You can change this back to 'Automatic' in the Formulas tab under Calculation Options.
Can hidden spaces cause the SUM function to return zero?
Yes, leading or trailing spaces can cause numbers to be treated as text. You can use the TRIM function or the Find and Replace tool to remove these hidden spaces before summing the values.




