When a SUM formula in Excel returns 0, an error, or the wrong total, the cause is almost always one of a handful of common issues: numbers stored as text, a typo in the range, hidden rows or characters like apostrophes sneaking into your data. This guide walks you through how to diagnose and fix each one, usually in under a minute. You'll need a spreadsheet open in Microsoft Excel (desktop or the web version) where the SUM isn't behaving as expected. Menu labels can differ slightly between the desktop app, Excel for the web, and Mac, but the core steps are the same everywhere.

What You'll Need

  • A Windows or Mac computer, or Excel for the web in a browser (steps below are written for desktop; the web version is very similar)
  • The spreadsheet where your SUM formula isn't working
  • Basic familiarity with entering a formula in a cell

Step-by-Step

  1. Check the formula itself. Click the cell with the problem and look at the formula bar. The correct syntax is =SUM(A1:A10) with no spaces inside the range and a colon (not a dash or dot) between the start and end cells. If the cell shows the formula text instead of a result (for example, the cell literally reads =SUM(A1:A10)), the cell is formatted as Text. Fix it: select the cell, go to Home > Number Format and choose General, then double-click the cell and press Enter to recalculate.
  2. Look for numbers stored as text. This is the single most common cause. Click one of the values your SUM should be adding. If the formula bar shows an apostrophe before the number (like '25), or you see a small green triangle in the corner of the cells, Excel is treating them as text and ignoring them. Select the range, click the warning icon that appears, and choose Convert to Number. Alternatively, select the cells, set the format to General under Home, then use Data > Text to Columns and click Finish to force the conversion.
  3. Find invisible characters. Numbers imported from other systems or websites often carry leading spaces or non-breaking space characters (character code 160) that make Excel see them as text. Use =TRIM() or =CLEAN() on the affected cells, or use Find and Replace (Ctrl+H) to delete stray spaces. To replace non-breaking spaces specifically, copy one from your data and paste it into the Find box, leave Replace blank, and click Replace All.
  4. Check for wrong decimal or thousands separators. If your data uses periods as thousands separators (like 1.500 for one thousand five hundred) but your Excel region expects commas, values will be misread. Either change the separators to match your system settings, or adjust the separators under File > Options > Advanced (Windows) so they match your data.
  5. Verify the range covers everything. Click the formula cell, then look at the colored outline Excel draws around the referenced range. If numbers sit outside the outline, edit the formula to include them. Watch for accidental gaps like =SUM(A1:A5,A7:A10) that skip A6.
  6. Check whether calculation is set to manual. If the SUM shows an old result and only updates when you press F9, automatic calculation has been turned off. Go to Formulas > Calculation Options and select Automatic.
  7. Check for hidden rows or filtered-out values. SUM includes hidden and filtered rows, but if you used SUBTOTAL instead, filtered-out rows are intentionally excluded. Decide which behavior you want: use SUM for everything, or SUBTOTAL for visible rows only.
  8. Test with a small range. In an empty cell, type =SUM(1,2). If that returns 3, the SUM function itself works and the problem is definitely in your data. If it doesn't, restart Excel and check that formulas haven't been replaced by their displayed values (Paste Values) somewhere in the chain.
  9. Rebuild the formula with AutoSum. As a final fix, delete the broken formula, select the empty cell directly below your column of numbers, and press Alt+= (Windows) or Command+Shift+T (Mac). Excel builds the SUM automatically and shows the range it plans to use so you can confirm it.

Common Mistakes

  • Using commas instead of colons in a range (=SUM(A1,A10) adds only two cells; =SUM(A1:A10) adds all ten).
  • Assuming a green triangle means an error when it usually just flags numbers stored as text.
  • Formatting cells as Currency or Number and expecting that to convert existing text values; formatting changes display, not the underlying value.
  • Leaving Calculation Options on Manual after a large workbook slowed things down, then forgetting to switch it back.
  • Summing a column that contains error values like #N/A or #VALUE!; any error in the range makes the whole SUM return an error.

Tips

  • Use =ISNUMBER(A1) on a suspect cell: TRUE means Excel sees a number, FALSE means it's text.
  • =SUMPRODUCT(--A1:A10) can add numbers-as-text in one step, handy when you can't modify the source data.
  • If some values might be errors, =SUMIF(A1:A10,"<1E+307") or AGGREGATE can sum while skipping errors.
  • Select the range and glance at the status bar in the bottom-right corner; Excel shows a quick Sum, Average, and Count there without any formula.
  • Paste imported data using Paste Special > Values first, then clean it, rather than repeatedly reformatting.

Troubleshooting

If the steps above didn't solve it, work through these in order:

  1. SUM returns 0: Almost certainly all values are text. Redo Step 2 and Step 3, and confirm with =ISNUMBER() on a few cells.
  2. SUM returns #VALUE! or #NAME?: #NAME? means a misspelled function name (check for =SUMM or stray characters). #VALUE! usually means text or an error value inside the range; find and fix the offending cell.
  3. SUM is off by a small amount: Check for rounded display values. A cell showing 5.00 may actually hold 4.996. Widen decimals under Home > Number Format to see true values, and consider ROUND if you need exact currency behavior.
  4. Formula shows as text: The cell format is Text (Step 1) or Show Formulas is on. Check Formulas > Show Formulas (or Ctrl+`) and turn it off.
  5. Nothing works: Save your work, close Excel completely, reopen the file, and try again. If the file was created elsewhere, try copying your data into a fresh workbook and summing there; a fresh file isolates whether the workbook itself is the problem.

Frequently Asked Questions

Why does SUM return 0 when I can see the numbers?

The numbers are stored as text. Excel ignores text in SUM. Select the cells, use the warning icon's Convert to Number option, or re-enter the values after setting the format to General.

Why is my SUM off by a few cents?

Displayed values are rounded, but SUM uses the full underlying values. Increase the visible decimal places to confirm, then decide whether to apply ROUND to the source cells.

Does SUM include hidden rows?

Yes. SUM adds everything in the range, hidden or not. Use SUBTOTAL if you want to exclude filtered or hidden rows.

Why does my formula show as text in the cell?

The cell was formatted as Text before you typed the formula, or Show Formulas mode is enabled. Set the cell to General, press F2 then Enter, and toggle Show Formulas off with Ctrl+`.

What's the difference between SUM and SUBTOTAL?

SUM always adds everything in the range. SUBTOTAL can add only visible rows, so filtered-out data is excluded, and it also ignores nested SUBTOTALs to prevent double counting.

Can I sum numbers stored as text without converting them?

Yes. =SUMPRODUCT(--A1:A10) treats the text values as numbers for the calculation, leaving the original cells unchanged.