Excel formula not calculating: how to fix it
Updated · Checked on a live sheet · Excel and Google Sheets
The most likely fix
If formulas show a result but don't update when you change the data, Excel's calculation is set to Manual: choose Automatic under Formulas › Calculation Options (or File › Options › Formulas). If they show the formula itself instead of a result, see the fixes for formulas stored as text below.
See a formula that calculates
Edit the numbers or the formula in B7: a calculating sheet updates as you type.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Sold | Price | Total |
| 2 | Sourdough loaf | 14 | $6.50 | |
| 3 | Croissant | 32 | $2.80 | |
| 4 | Cinnamon bun | 21 | $3.20 | |
| 5 | Baguette | 18 | $3.00 | |
| 6 | Rye loaf | 9 | $7.00 | |
| 7 | Total sold | 94 |
Fixed
=SUM(B2:B6)Causes, most likely first
1Calculation is set to Manual
Microsoft's recalculation page describes the setting: Automatic (the default) recalculates every time a value changes; Manual waits until you press F9. Microsoft notes it affects all open workbooks in the desktop apps, so one file set to Manual can make others look broken. Formulas › Calculation Options › Automatic puts it back.
2The cell is formatted as Text
A formula typed into a Text-formatted cell is stored as text and shown as typed. Changing the format isn't enough: set it to General, then press F2 and Enter to re-enter the formula. Microsoft's support article on cells linked to Text-formatted cells describes the same behaviour.
3Show Formulas is on
If every formula on the sheet shows its text, it's a view setting: Formulas › Show Formulas, or Ctrl + ` (grave accent) in Excel. In Google Sheets, Google lists Ctrl + ~ to show all formulas.
4No = at the start, or something before it
A formula must start with
=. Without it, or with an apostrophe or a space before it, the cell holds text. Delete the extra character so the=comes first.Wrong
SUM(B2:B6)Fixed
=SUM(B2:B6)5A circular reference
A formula that refers to its own cell can't be calculated. Microsoft says Excel might show 0 or the last calculated value in that cell, which looks like a formula that stopped updating. Formulas › Error Checking › Circular References names the cell; see the circular reference page.
6A range that doesn't include new rows
If a total stops “updating” after you add rows below it, it may simply not include them:
SUM(B2:B6)never sees B7. Extend the range, or put the data in an Excel table so totals grow with it.Wrong
=SUM(B2:B6)Fixed
=SUM(B2:B7)
Stop it happening again
Check the calculation mode first whenever numbers stop updating: it takes five seconds and explains the most confusing cases. Keep Show Formulas for checking and switch it off afterwards. Format input columns as General or Number before typing formulas into them, especially in sheets built from imports, which often arrive as Text. Start every formula with = typed by you, not pasted from a document, where an invisible space can sneak in first. And if a value looks stuck at 0, look for a circular reference in the status bar.
Questions
Why does pressing F9 fix my formulas?
F9 recalculates the workbook. If that's the only way formulas update, calculation is set to Manual; switch it back to Automatic so you don't have to remember.
Why does my formula show 0 instead of a result?
Check for a circular reference first (Excel may show 0 for a formula that refers to itself), then check whether the cells it reads are really numbers and not text. A SUM of text-numbers is 0.
In Google Sheets
Google Sheets has the same switch: under File › Settings › Calculation, Automatic mode applies changes as soon as you make them, and Manual mode only calculates when you select Calculate at the top of the screen. The same page sets how often volatile functions like TODAY and NOW recalculate. Formulas stored as text happen in Sheets too when the = isn't the first character, and Google lists Ctrl + ~ to show all formulas.
Why this happens
“Not calculating” covers two different problems. Either the spreadsheet isn't recalculating (Manual mode, a circular reference), or it doesn't see a formula at all (Text format, no leading =, Show Formulas). The quickest test: change a number the formula uses. If the cell shows a result that doesn't change, it's calculation; if it shows the formula's text, it's the cell. The formula shows as text page goes deeper on the second case, and how to write a formula covers the basics.
Sources
Official documentation the facts on this page were checked against.
- Microsoft Support: SUM function
- Google Docs Editors Help: SUM
- Microsoft Support: Change formula recalculation, iteration, or precision in Excel
- Microsoft Support: Display or hide formulas
- Google Docs Editors Help: Keyboard shortcuts for Google Sheets
- Google Docs Editors Help: Set a spreadsheet's locale, time zone, calculation settings, and functions language