Formula Errors

How to Fix Excel SUM Not Working When Numbers Are Stored as Text

Aamir Naveed AkramAamir Naveed Akram Nov 2, 2026 873 views

Question details

The SUM function fails to calculate a total because the numerical values within the selected cell range are stored as text.

How to Fix Excel SUM Not Working When Numbers Are Stored as Text
Product
Excel
Device & OS
not provided
Scenario
Copying data from an external source, importing a CSV file, or entering data that gets automatically formatted as text, preventing mathematical operations.
Observed behavior
The SUM formula returns an incorrect total or 0. Changing the cell format to 'Number' from the ribbon does not automatically convert the existing text strings into calculate-able numeric values.
Before you start

Verify your cell formatting by looking for a small green triangle in the top-left corner of the cells, or check if the numbers are automatically aligned to the left, which indicates they are currently stored as text.

Solution 1Recommended

Use the 'Convert to Number' Error Checking Command

The quickest and most straightforward way to fix numbers stored as text using Excel's built-in error checking indicator.

When Excel detects numbers formatted as text, it flags them with a small green triangle in the corner of the cell. You can use the built-in warning menu to batch convert these cells instantly.

1
Select the affected cells

Highlight all the cells containing the text-formatted numbers that you want to include in your SUM calculation.

2
Click the warning icon

Look for the yellow diamond-shaped warning icon with an exclamation mark that appears next to your selected range. Click on it to open the options menu.

3
Convert the values

Select 'Convert to Number' from the dropdown list. Excel will immediately change the text strings into true numerical values.

4
Verify your SUM formula

Check your SUM formula cell; it should now display the correct calculated total automatically.

Use the 'Convert to Number' Error Checking Command
Quick Conversion: This method works best for continuous ranges of data. If the green triangles do not appear, ensure that 'Background error checking' is enabled in your Excel Options.
Efficient Data Management

Convert Text to Numbers and Calculate Sums Easily in WPS Spreadsheet

WPS Spreadsheet provides intuitive error-checking tools to instantly detect text-formatted numbers and convert them to numeric values for accurate SUM calculations, fully compatible with Microsoft Excel.

  1. 1. Open your file in WPS Office: Launch WPS Spreadsheet and open the document containing the calculation error.
  2. 2. Highlight the problematic cells: Select the cells with numbers that are aligned to the left or have the green error triangle.
  3. 3. Click the error indicator: Click the yellow warning icon that appears next to the selection box.
  4. 4. Select Convert to Number: Choose 'Convert to Number' from the context menu to fix the data format instantly.
Instantly identify and convert text to numbers with smart built-in error checking.100% compatible with Microsoft Excel (.xlsx) formulas, functions, and formatting.Lightweight, fast, and free alternative for complex data analysis and daily calculations.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't changing the cell format to 'Number' fix my SUM calculation?

Changing the cell format from the ribbon only alters how the cell is displayed, not the underlying data type. For Excel to recognize the change, you must force a re-evaluation by either double-clicking the cell and pressing Enter, or by using a conversion tool like 'Convert to Number' or 'Text to Columns'.

Can I use Text to Columns to fix numbers stored as text?

Yes. Select the entire column of text-formatted numbers, go to the Data tab, and click 'Text to Columns'. Without changing any settings, simply click 'Finish'. This action forces Excel to re-evaluate the column values, automatically converting them to numbers.

How can I prevent imported data from being stored as text in the future?

When using the Data Import Wizard to bring in CSV or external data, carefully review the column data format step. Ensure you set the format for numerical columns to 'General' or 'Number' rather than 'Text' before you finish the import process.