A SUM formula that returns 0, ignores rows, or shows the formula text instead of a result is almost always caused by numbers stored as text, a cell format set to Text, or automatic calculation turned off. The fastest fix is an in-cell test: click one cell in your range and check whether it is left-aligned with a green triangle in the corner, then look at the status bar at the bottom of the window. If it reads Count instead of Sum, the values are text, not numbers. From there you convert them, recheck the calculation mode, and recalculate. Nothing below deletes your data, and every step is reversible.

What You'll Need

  • Excel on Windows, Mac, or the web (steps are for the desktop app; the web version has fewer options and is noted where it differs)
  • The workbook with the broken formula, saved before you start
  • Optional: a scratch copy of the sheet so you can test fixes without touching the original

Step-by-Step

  1. Confirm what the formula actually says. Click the cell with the SUM formula and read it in the formula bar above the grid. It should look like =SUM(A1:A10). If you see the text only, with no result, the cell is formatted as Text or the formula begins with an apostrophe. Delete the leading apostrophe, set the cell format to General, then re-enter the formula and press Enter.
  2. Check whether the numbers are stored as text. Click a cell inside your range. Numbers are right-aligned by default and text is left-aligned, and Excel usually flags text-numbers with a small green triangle in the top-left corner. Select the whole range and look at the status bar at the bottom of the window: it should show Sum with a value. If it shows only Count, Excel sees text. Menu and ribbon labels vary slightly by version and region, so look for the closest match.
  3. Convert the text to real numbers. Select the range, then open the warning icon that appears next to the selection and choose Convert to Number. If no warning appears, enter 1 in an empty cell, copy it, select the range, and use Paste Special > Values > Multiply (right-click the range for Paste Special on Windows; on Mac, use Edit > Paste Special > Multiply). This multiplies every value by 1 and turns numeric text into numbers. Delete the helper cell afterward.
  4. Look for spaces and invisible characters. A number typed with a leading space, a trailing space, or a non-breaking space copied from a web page will not sum. Use Find and Replace (Ctrl+H on Windows, Command+H on Mac) to replace a single space with nothing, then repeat for the non-breaking space. Run it across the range you are summing.
  5. Turn automatic calculation back on. If the formula works but shows an old result, the workbook is likely in Manual mode. On the Formulas tab, find the Calculation group and set Calculation Options to Automatic. In the web version this setting is limited, so open the file in the desktop app if you cannot change it.
  6. Force a full recalculation. Press F9 to recalculate all open workbooks, or use the Calculate Now button in the Calculation group on the Formulas tab. If nothing changes, press Ctrl+Alt+F9 (Windows) to force a complete rebuild of all formulas.
  7. Check the range you are summing. A SUM that returns a smaller total than expected often points at a range that stops short of the last row. Click the formula, then drag the colored range outline to confirm which cells are included. Widen or correct the range, or use a full-column reference such as =SUM(A:A) if the data grows over time.
  8. Look for broken references and circular logic. If the formula shows an error such as a name error or a reference error, the range may have been deleted or the sheet renamed. Check for a circular reference warning, which means your SUM is, directly or indirectly, summing its own cell. Trace the range and remove the overlap.
  9. Test with a clean formula. In an empty cell, type =SUM(, select the range with the mouse, close the bracket, and press Enter. If this works but the original does not, the original formula contains a typo such as a comma used where a colon is needed, or a stray character. Replace the old formula with the clean one.
  10. Copy the data to a fresh sheet. If the totals still fail, copy the values and use Paste Special > Values into a new blank sheet, then rebuild the SUM there. This strips hidden formatting and formulas that can confuse the calculation.

Common Mistakes

  • Pasting numbers from websites or other programs. Exported and web-copied data frequently carries invisible characters or text formatting. Paste as Values and convert to number before summing.
  • Formatting the output cell as Text. A Text-formatted result cell shows the formula as text. Set it to General or Number.
  • Expecting SUM to see hidden rows or filtered rows. SUM includes hidden rows. If you need only visible rows, use SUBTOTAL instead, which is the correct tool for filtered lists.
  • Ignoring the green triangle. The warning is easy to dismiss; if you click Ignore Error, the numbers stay as text and every SUM keeps failing.
  • Typing a comma instead of a colon. =SUM(A1,A10) adds only two cells; =SUM(A1:A10) adds the whole range.

Tips

  • Use the status-bar Sum reading to sanity-check any range before writing a formula; it costs one click and saves minutes.
  • Keep one helper column formatted as Number when importing data, then copy values into it. It makes text-to-number problems obvious.
  • Press Ctrl+` (the key to the left of 1 on most keyboards) to toggle Show Formulas and see every formula in the sheet at once. Press it again to return to normal view.
  • Avoid merging cells inside a sum range; merged cells can hide values from the calculation.
  • If totals must stay exact for money, round each input value rather than the final total.

Troubleshooting

If the status bar still reports Count after converting to number, the range may contain a mix of text and numbers, or the format is locked. Select the range, set the cell format to General, then re-run Convert to Number. If the formula shows a reference error, the source sheet or rows may have been deleted; retype the range.

If a circular reference warning appears, Excel lists the offending cell in the status bar or in a dialog. Move the SUM formula outside the range it sums, or restructure the sheet so totals sit below or beside the data rather than inside it.

If recalculation does nothing, close and reopen the workbook. A corrupted workbook can block recalculation; make a copy, then try the copy. Save and reopen in the desktop app if you have been working in the web version, since some calculation settings are not editable there.

If only one or two rows misbehave, isolate them with =ISNUMBER(A1) in a spare column. Every cell in a correctly formatted range returns TRUE. Any FALSE cell is your culprit, and you can convert just that cell.

Frequently Asked Questions

Why does my SUM formula return 0?

Almost always because the cells contain text rather than numbers, or the formula range does not overlap the data. Check alignment and the status bar first, then convert to number.

Why does Excel show the formula instead of the result?

The cell is formatted as Text or the formula was typed with a leading apostrophe. Set the format to General and re-enter the formula.

How do I fix numbers that came from a CSV file?

Use the warning icon and Convert to Number, or Paste Special > Multiply by 1 on the range. CSV imports often store amounts as text.

Does SUM add hidden or filtered rows?

Yes. SUM includes hidden rows. Use SUBTOTAL when you want only the rows visible after a filter.

Why is my total smaller than expected?

The range usually stops before the last row, or some cells are text and are skipped. Widen the range and check for text-formatted cells.