Excel formula not working? How to find the cause and fix it
SheetFluent team · · 7 min read
When an Excel formula isn't working, the cause is usually one of four things: the formula has no equals sign at the start, the cell was formatted as Text before you typed it, Show Formulas is turned on, or calculation is set to Manual. Check those first. If the formula runs but the answer is wrong, the numbers may be stored as text, or the range may not cover every row. The sections below go through each cause in the order to check them.
=B2*C2
1. The formula shows as text: check the equals sign
Excel treats a cell as a formula only when its first character is an equals sign. If you type B2, Excel stores those five characters as text and shows them as they are.
Look at the formula bar, not the cell. A space or an apostrophe before the equals sign also turns the formula into text: '=B2 and =B2 both show as typed. Click the cell, delete everything before the =, and press Enter.
2. The formula shows as text: check the cell format
If the cell was formatted as Text before you typed the formula, Excel stores the formula as text even with the equals sign in place. This often happens in columns that were set to Text to keep leading zeros in codes.
1. Select the cells.
2. On the Home tab, change the format box from Text to General.
3. Changing the format alone doesn't recalculate the cell. Click in each cell, press F2, then press Enter. For a long column, use Find and Replace to swap = for =, which makes Excel re-enter every formula at once.
3. Every cell shows its formula: Show Formulas is on
If every formula on the sheet shows its text instead of its result, Show Formulas is turned on. The columns usually look wider than normal too.
Press Ctrl+` (the grave accent key, to the left of 1 on most keyboards) to switch it off, or go to the Formulas tab and click Show Formulas. In Google Sheets, the same shortcut works, or use View, Show, Formulas.
4. The answer doesn't update: calculation is Manual
If you change a number and the total stays the same, Excel may be set to calculate only when asked. This setting is saved in the file, so a workbook from a colleague can switch it on without you noticing.
Go to the Formulas tab, click Calculation Options, and choose Automatic. Press F9 to recalculate straight away. If the status bar at the bottom says Calculate, that is a sign Manual is on.
Google Sheets always recalculates when something changes, so this cause applies to Excel only.
5. The total is too small or zero: numbers stored as text
SUM, AVERAGE, MIN and MAX skip text. If some numbers were pasted from a website, a PDF or another system, they may look like numbers but be text. The formula works but leaves them out, so the total is too small, or 0.
Signs to look for: the numbers sit on the left of the cell instead of the right, a small green triangle appears in the corner, or the status bar shows Count but no Sum when you select them. Our lesson on converting text to numbers covers VALUE and the other fixes step by step.
See also: Turn text into numbers with VALUE
6. The answer is an error value
An error value tells you what kind of problem the formula met. Read it before changing anything.
#NAME? means Excel didn't recognize a word in the formula. Usually a function name is misspelled, such as =SUMM(, or text is missing its double quotes, such as =IF(.
#VALUE! means the formula tried to do math with text, such as adding a cell that holds a word.
#DIV/0! means a division by zero or by an empty cell. IFERROR can show a friendlier result while the data is incomplete.
#N/A comes from lookups and means the value wasn't found. Hidden spaces and numbers stored as text are the usual reasons. The VLOOKUP and XLOOKUP lessons each have a section on this.
#REF! means the formula points at cells that were deleted. Undo the delete, or retype the reference.
See also: Replace errors with IFERROR
7. Copied formulas give wrong answers
When you fill a formula down, its references move with it. That's usually what you want, but a reference to a single fixed cell, such as a tax rate in F1, moves too and ends up pointing at empty cells.
Put dollar signs in the reference that should stay put: =B2. Press F4 (Cmd+T on a Mac) after typing the reference to add them. Our lesson on absolute references explains when to use them.
See also: Lock a cell with $
8. Other causes worth a quick check
Circular reference. The formula includes its own cell, such as =SUM( typed in B7. Excel shows a warning, and the status bar names the cell. Stop the range one row above the formula.
The range is too short. New rows added under a table aren't always picked up by an existing =SUM(. Click the formula and check the colored outline covers every row.
Semicolons instead of commas. In some countries Excel and Google Sheets use semicolons between the parts of a formula, so a formula copied from a website may fail. Use the separator your copy of Excel expects.
See also: How to remove line breaks in Excel, Google Sheets vs Excel formulas: what's the same and what's different
A quick order to check things in
When a formula misbehaves, work from the outside in. First look at the cell: does it show the formula's text, an error value, or a number that looks wrong? Each points to a different group of causes above.
Then click the cell and read the formula bar. Check that it starts with =, that the function names are spelled correctly, and that the colored outlines on the grid cover the cells you meant.
Next, check one input by hand. If the formula adds B2:B6, select those cells and read the Sum in the status bar. If the status bar sum differs from the formula, a cell is stored as text or the range is wrong.
Finally, use Evaluate Formula on the Formulas tab. It runs the formula one step at a time, so you can see exactly which part gives the unexpected result.
Try it here
Type the formula into the answer cell, then press Enter or Check.
Someone typed B2 in D2 with no equals sign, so it showed as text. In D2, type =B2 to multiply boxes by items per box. It will be filled down to D6.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Boxes | Per box | Total |
| 2 | Pens | 4 | 12 | (answer cell) |
| 3 | Folders | 6 | 25 | |
| 4 | Markers | 3 | 10 | |
| 5 | Notepads | 5 | 8 | |
| 6 | Staples | 2 | 50 |
Someone typed B2 in D2 with no equals sign, so it showed as text. In D2, type =B2 to multiply boxes by items per box. It will be filled down to D6.
Questions people ask
Why is my Excel formula showing as text?
Either the formula doesn't start with =, or the cell was formatted as Text before you typed it. Fix the format to General, then press F2 and Enter in the cell.
Why doesn't my formula update when I change a number?
Calculation is probably set to Manual. On the Formulas tab, choose Calculation Options, Automatic, then press F9.
Why does my SUM return 0?
The numbers are likely stored as text, which SUM skips. Convert them to real numbers and the total updates.
How do I show results instead of formulas in every cell?
Press Ctrl+` to turn off Show Formulas, or click Show Formulas on the Formulas tab.
Keep practicing
Related articles
- How to remove line breaks in Excel6 min read
Remove line breaks in Excel with Find and Replace (Ctrl+J) or =SUBSTITUTE(A2,CHAR(10)," "), then TRIM the spaces. Works in Google Sheets too.
Most formulas work the same in Google Sheets and Excel. Here are the real differences: Sheets-only functions, other files, calculation and separators.
- Excel formulas cheat sheet7 min read
The Excel formulas you'll use most, grouped by job: totals, counting, conditions, lookups, text and rounding, each with an example. Print or save as PDF.
- How to insert today's date in Excel6 min read
Insert today's date in Excel with Ctrl+; for a date that stays put, or =TODAY() for one that updates. Plus the time, the day name and Google Sheets.