Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

SUM Formula Not Working in Excel? Fix It Step by Step

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If your SUM formula is not working in Excel, the cause is almost always one of four things: the numbers are stored as text, the cell is formatted as Text so Excel will not calculate it, calculation is set to Manual, or a typo in the formula keeps it from being recognised. The quickest test is to look at the status bar at the bottom of the window. Select the numbers you expect SUM to add and read the Sum value there. If the status bar shows a number but your formula returns 0 or an error, the problem is in the formula or in how the cell is set up. If the status bar shows nothing at all, the cells contain text rather than numbers. The steps below walk you through that test and each fix in the order of how often each one turns out to be the culprit.

What You'll Need

  • Excel on Windows, Mac, the web or mobile - the ribbons differ slightly between them, so a few notes below say where the desktop and mobile versions part ways.
  • The workbook that shows the problem, plus a copy you can experiment on if the data matters.
  • Nothing else. Every fix here uses built-in Excel features.

One note before you start: menu labels and dialog wording shift a little between Excel versions, platforms and regions. If a label you see does not match exactly, look for the closest match - the underlying option is almost always in the same place.

Step-by-Step

  1. Check that calculation is not set to Manual. If Excel is in Manual mode, formulas only recalculate when you trigger them and may look stale or unchanged. On Windows and Mac, go to the Formulas tab and look at the Calculation Options button. Make sure Automatic is selected. As a quick test, press F9 to force a full recalculation (on some laptops you may need to hold Fn as well). If the total suddenly appears, Manual calculation was the cause.
  2. Confirm the cells actually hold numbers. Text that looks like a number - a typed "1,500", a leading apostrophe, a value imported from another program, or numbers padded with spaces - cannot be added. Select the range and check the status bar. If Average and Count appear but Sum does not, Excel sees text. You can also look at the alignment: real numbers are right-aligned by default, text is left-aligned, though that default can be changed.
  3. Look for the green triangle error marker. Cells with a small green triangle in the corner are flagged by Excel's error checking. Click a flagged cell and check the warning icon that appears beside it; if the message offers to convert text to number, use that option. This is usually the easiest way to spot numbers stored as text.
  4. Retest using checkboxes or a clean cell. Type 1 in an empty cell and 1 in another, then write =SUM() with those two cells selected. If that returns 2, your formula mechanics are fine and the problem lies in the original data range. If even this returns 0 or an error, continue to the next step.
  5. Retype the formula rather than editing it. Open the cell in the formula bar and retype =SUM( from scratch, then select the range with the mouse instead of typing cell references by hand. Selecting with the mouse avoids typos, stray spaces and missing commas. Press Enter and see whether the result changes.
  6. Repair text-formatted numbers. If the source cells are genuine text, the cleanest fix is to convert them. Type the number 1 into an empty cell, copy it, select the problem cells, then use Paste Special and choose Multiply. Excel converts each value to a real number on the fly. An alternative that works in every version is to select the range and use the Data tab's Text to Columns command, clicking Finish without changing any options - the values are re-read as numbers. Note that any cell whose value is changed this way needs a format check afterwards.
  7. Check the cell format of the formula cell itself. A cell formatted as Text will display the formula's source code instead of its result. Select the formula cell, open Format Cells with Ctrl+1 (Cmd+1 on Mac), choose General or Number, then press F2 and Enter to re-enter the formula. Changing the format alone does not always recalculate an existing value.
  8. Make sure you are not summing over a hidden filter or a broken range. If your formula refers to a range that a filter has hidden, SUM still includes filtered-out values - that is correct behaviour, but it can look wrong. If SUM appears to ignore rows you expect, check whether those rows sit outside the range in the formula. Widen the range or use a structured table reference instead.
  9. Look for circular references. If the formula points at its own cell, directly or through a chain, Excel refuses to calculate it and shows a circular reference warning. Open the Formulas tab, use the Error Checking menu and choose Circular References; Excel lists the offending cell. Rewrite the range so it does not include the formula cell itself.
  10. Check for merged cells and stray spaces. Merged cells return values in only the top-left cell of the merge and blank elsewhere, which breaks totals. Also scan for extra spaces in sheet names or references - a reference like =SUM(Sheet 1!A1:A9) needs quotes around names with spaces: =SUM('Sheet 1'!A1:A9).

Common Mistakes

  • Typing the formula with a full stop or semicolon because of regional settings; in many regions the argument separator is a comma, but some locales use a semicolon. If your formula errors immediately after you type it, this is worth checking.
  • Trying to SUM a column that also contains a header or a total row. The header is ignored, so the formula works, but the label "Total" may look like a number and confuse the eye.
  • Assuming a value imported from a CSV is numeric. Imports very often carry text-formatted numbers, which is why step 3 and step 6 matter most for imported data.
  • Overwriting a formula with a pasted value from elsewhere. If the cell no longer contains a formula, it will not update - check the formula bar.
  • Forgetting that SUM does not read a cell formatted as text even if the underline formatting was removed; the format must be changed back to General or Number.

Tips

  • For a quick total, select the range and use AutoSum (Alt+= on Windows) instead of typing the formula. Excel inserts the correct range for you, which sidesteps reference typos.
  • Use the status bar as your first-line diagnostic. Customise it by right-clicking the bar and ticking Sum, Average, Count and Numerical Count - if Count is larger than Numerical Count, some cells are text.
  • Keep number formatting separate from value. Format cells as Currency or Number after you have confirmed SUM works, so a formatting change cannot be mistaken for a calculation problem.
  • If you keep a helper column to test values, put it on a spare sheet rather than inside the table you are totalling.

Troubleshooting

If the total is still wrong after all ten steps, isolate the problem systematically. Clear all filters and sorts, then retest. Delete the format of the formula cell by copying an empty cell and pasting it over the formula cell, then retype the formula. Open the workbook on another device or in Excel for the web as a cross-check - if it calculates correctly there, the issue is local to your installation, and a repair of the Office installation or an update is the next thing to try. If the workbook was copied from someone else and is large, check whether the formula references a defined name that no longer exists. Finally, save a copy before making structural changes, because switching calculation options and converting text values cannot always be undone.

Frequently Asked Questions

Why does SUM return 0 when I can see numbers?

Almost always because the numbers are text. Check the alignment and the green error triangles, then convert them using the Paste Special multiply method or Text to Columns.

Why does Excel show the formula instead of the result?

The cell is formatted as Text, or the Formula Auditing view is set to Show Formulas. Change the cell format and press F2 then Enter, and review the Formulas tab's Show Formulas toggle.

Why does SUM ignore cells with errors?

SUM returns an error if any cell in the range errors. Use SUMIF to skip errors or locate and correct the erroring cell first.

Does SUM include filtered-out rows?

Yes. Use SUBTOTAL instead if you want hidden or filtered rows excluded from the total.

Why does AutoSum pick the wrong range?

AutoSum guesses a contiguous block and stops at blanks. Select the exact range yourself before pressing it, or type the range in the formula.