Formula Errors

How to Fix Excel SUM Function Returning Zero Instead of Adding Values

Khadija KhanKhadija Khan Nov 11, 2026 869 views

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.

How to Fix Excel SUM Function Returning Zero Instead of Adding 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 you start

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.

Solution 1Recommended

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.

1
Select the data range

Highlight the range of cells containing the numbers you want to sum.

2
Open Text to Columns

Go to the 'Data' tab on the ribbon and click on 'Text to Columns'.

3
Finish the wizard

In the wizard that appears, simply click the 'Finish' button without changing any settings.

4
Verify the SUM formula

Check your SUM formula again; it should now display the correct total.

Convert Text to Numbers Using Text to Columns
Quick Tip: If you see a small green triangle in the top-left corner of your cells, you can also select them, click the warning icon, and choose 'Convert to Number'.
Solve Formula Errors Easily

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. 1. Open your file: Open your spreadsheet document in WPS Office.
  2. 2. Select the problematic cells: Highlight the cells with the green triangle in the corner, which indicates numbers are stored as text.
  3. 3. Click the warning icon: Click the small exclamation mark icon that appears next to your selection.
  4. 4. Convert the data: Select 'Convert to Number' from the drop-down menu.
  5. 5. Check the result: Your SUM formula will instantly update with the correct numerical total.
One-click error checking to identify numbers stored as textFully compatible with Microsoft Excel formulas and formats (.xlsx)Lightweight and fast, even with large datasetsFree to use with a familiar user interface
microsoft office alternative - wps office

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.