Field Guide

Why is my Excel formula not calculating?

Updated

A formula that is not calculating shows one of two symptoms, and they point at different causes. If the cell shows the formula text itself, =SUM(B2:B4) sitting in the grid where a number should be, Excel is storing or displaying the formula as text: a Text-formatted cell, Show Formulas mode, or a stray character before the =. If the cell shows a number but the number is stale, ignoring edits to the cells it depends on, calculation is almost certainly set to Manual.

The fastest first check covers the second case: press F9. If the numbers jump, you have your diagnosis, and the first section below is the fix. If nothing moves, work down the remaining causes in order; each has a specific, repeatable fix.

Why are my formulas not updating when I change a cell?

By default Excel recalculates every dependent formula each time you change a value, a formula, or a name. That default is called Automatic, and it can be switched off. With calculation set to Manual, Excel updates formulas only when you manually recalculate, so edits land in the grid while every total built on them keeps showing the old answer.

B4
fx
=SUM(B2:B3)
A B
1 Region Sales
2 North 500
3 South 700
4 Total 1,100
B3 was edited from 600 to 700, but calculation is set to Manual, so B4 still shows the stale total 1,100. Press F9 and it becomes 1,200.

The setting lives in two places. On the ribbon: the Formulas tab, Calculation group, Calculation Options, where you pick Automatic or Manual. In the options dialog, in Excel for Windows: File, then Options, then the Formulas category, under Workbook Calculation in the Calculation options section. Either route sets the same thing, and in the Excel desktop apps changing it affects all open workbooks, not only the one you changed it in. That reach is why the symptom spreads: one workbook that needed Manual mode leaves every other open workbook manual too. Excel for the web behaves differently on this point; there, per Microsoft, changing the calculation option affects the current workbook only, not other workbooks open in the browser.

While calculation is Manual, the recalculation keys are how you refresh results. Per Microsoft’s calculation-options page, F9 means “Recalculate formulas that have changed since the last calculation, and formulas dependent on them, in all open workbooks.” Shift+F9 does the same for the active worksheet only, and Ctrl+Alt+F9 recalculates every formula in every open workbook whether it changed or not.

Two side effects of Manual mode matter here. When you select it, Excel automatically ticks a Recalculate workbook before saving check box, so a saved file normally gets fresh numbers on the way out; if someone cleared that box to speed up saving, the file on disk can hold stale results too. And Manual mode is not a malfunction: people turn it on deliberately in slow, heavily linked models. The problem is that Excel gives no visible cue that the mode changed, so the next person reads old numbers as current ones.

The fix, once you want live results again: Formulas > Calculation Options > Automatic.

Why is Excel showing the formula instead of the result?

This is the other symptom family: the cell displays =SUM(B2:B4) as text. Which fix applies depends on whether it is one cell or the whole sheet.

The cell was formatted as Text before you typed the formula

If a single cell shows its formula, the usual cause is that the cell carried the Text number format when the formula was entered, so Excel stored the characters instead of calculating them.

A B
1 Item Amount
2 Rent 1,150
3 Power 240
4 Internet 60
5 Total =SUM(B2:B4)
B5 was formatted as Text before the formula was typed, so the cell holds the characters, not a calculation. Re-entered with a General format, it returns 1,450.

Microsoft’s fix has two parts, and both matter: right-click the cell and select Format Cells, then General (or press Ctrl+1), then press F2 and Enter. The F2 and Enter step re-enters the formula. Changing the format alone does nothing visible, because the cell still contains the text it stored; the formula has to be entered again under the new format.

Show Formulas mode is on for the whole sheet

If every formula on the sheet is showing as text at once, nothing is wrong with the cells. Show Formulas mode is on, a view toggle that switches the sheet between displaying formulas and displaying results. It is genuinely useful for reviewing a sheet’s logic, and genuinely alarming when someone hits its shortcut by accident.

Turn it off where it was turned on: the Formulas tab, in the Formula Auditing group, select Show Formulas, or press Ctrl+` (the grave accent key, under Esc on most keyboards). The tell that separates this cause from the Text-format one: Show Formulas affects every formula on the sheet; a Text-formatted cell affects only itself.

The opposite arrangement exists as well, and it confuses reviews in the other direction. Excel can hide formulas on a protected sheet: mark the cells as Hidden on the Protection tab of the Format Cells dialog, then protect the sheet via Review and Protect Sheet, and the results display while the formula bar shows nothing for those cells. Microsoft notes the procedure also stops those cells being edited. If you can see results but not the formulas behind them, look for that setup and use Review, then Unprotect Sheet.

An apostrophe or a space before the equal sign

Excel decides whether an entry is a formula by how it starts. Microsoft’s troubleshooting page puts it plainly: “If your entry doesn’t start with an equal sign, it isn’t a formula, and won’t be calculated”, and calls it a common mistake. A space typed before the = means the entry starts with a space, so the whole thing is text. An apostrophe does the same job on purpose: Microsoft documents the leading apostrophe as the way to tell Excel to treat a number as text, and it does the same to a formula, which is exactly what you do not want.

'=SUM(B2:B4)
The leading apostrophe tells Excel to treat the entry as text, so the formula never runs. Delete the apostrophe and press Enter.

The fix is the obvious one: edit the cell, delete the apostrophe or the leading space, and press Enter.

What if the formula calculates but returns an error?

A cell showing #REF!, #VALUE!, #NAME?, or #DIV/0! is a different situation from everything above: the formula is calculating, and the calculation is failing. Each error value names its own cause, and each has its own fix; the full vocabulary is in Excel’s error values, explained.

Two nearby cases are worth naming because they masquerade as “not working.” A lookup that returns #N/A is usually running correctly and failing to find a match, most often over a missing exact-match argument or a type mismatch; that one has its own walkthrough in the VLOOKUP #N/A guide. And a formula that calculates without complaint but returns the wrong number after being copied down a column usually lost a $: a relative reference shifted when the formula moved. Cell references in Excel covers when to lock a reference and when not to.

Why does my formula show 0 or a value that never changes?

A formula that displays 0 for no visible reason, or a result that stopped moving even though calculation is Automatic, can be a circular reference: the formula depends on its own cell, directly or through a chain of other formulas. Excel shows a warning the first time it finds one; after that, per Microsoft’s circular-reference page, the cell shows either a zero or whatever it last managed to calculate, and it sits there quietly.

The check is quick. Look at the status bar at the bottom left for the words Circular References, then use the Formulas tab, the arrow next to Error Checking, and Circular References to jump to the offending cell. Repointing the formula so it no longer includes its own cell is the fix; the full treatment, including the rare intentional case with iterative calculation, is in Circular references in Excel.

The short version

Match the symptom to the cause and the fix follows.

The common thread is that none of these announce themselves. A workbook can carry a Manual-mode stale total or a text-formatted “formula” through three reviews without anyone noticing, because the grid looks normal. If a number that turned out to be stale already went out the door, compare the sent version against the corrected one so you can say precisely which figures were affected instead of guessing.

Frequently asked questions

Why is my Excel formula not calculating?
There are two distinct symptoms. If the cell shows the formula text itself, the cell was formatted as Text before the formula was entered, Show Formulas mode is on, or an apostrophe or space sits in front of the equal sign. If the cell shows a number that does not update when you change its inputs, calculation is set to Manual: press F9 to recalculate, then set it back to Automatic under Formulas, Calculation Options.
How do I turn on automatic calculation in Excel?
On the Formulas tab, in the Calculation group, select Calculation Options, then Automatic. In Excel for Windows, the same setting lives under File, Options, Formulas, in the Calculation options section as Workbook Calculation. In the Excel desktop apps, changing this setting affects all open workbooks, not just the one in front of you.
Why is Excel showing the formula instead of the result?
If every formula on the sheet shows as text at once, Show Formulas mode is on: turn it off on the Formulas tab, in the Formula Auditing group, or press Ctrl+grave accent (`). If only one cell shows the formula, that cell was formatted as Text before the formula was typed, or the entry starts with an apostrophe or a space instead of the equal sign.
Why is my formula showing as text in one cell?
The cell was formatted as Text before you entered the formula, so Excel stored the characters instead of calculating them. Right-click the cell and select Format Cells, then General (or press Ctrl+1), then press F2 and Enter to re-enter the formula. Changing the format alone is not enough; the formula has to be re-entered.
Why are my formulas not updating when I change a cell?
Calculation is set to Manual, so Excel only recalculates when you ask it to, for example by pressing F9. F9 recalculates changed formulas and their dependents in all open workbooks; Shift+F9 does the same for the active worksheet only. To make formulas update on every edit again, select Formulas, Calculation Options, Automatic.
What does F9 do in Excel?
F9 recalculates every formula that changed since the last calculation, plus anything that depends on it, across all open workbooks. Shift+F9 limits that to the active worksheet. Ctrl+Alt+F9 recalculates all formulas in all open workbooks whether they changed or not. These are how you refresh results while calculation is set to Manual.
Why does my formula show 0 instead of a result?
A formula that shows 0 (or a value that never changes) for no visible reason can contain a circular reference: it depends, directly or through other cells, on its own cell. Excel warns the first time it finds one, then displays either a zero or the last calculated value. Check the status bar for the words Circular References, and use Formulas, Error Checking, Circular References to locate the cell.

Catch the errors before they ship

Reviewing a change to a model? Compare the two versions in your browser and see every changed cell, formula, and value. It's free, and nothing leaves your computer.