Excel Shows the Formula Instead of the Result
By ExcelReady TeamUpdated 5 min read
The short answer
Excel shows a formula as text for one of four reasons: Show Formulas is turned on, the cell was formatted as Text before you typed, there is a space or apostrophe before the equals sign, or the equals sign is missing. Press Ctrl+` to switch Show Formulas off, or set the cell to General and re-enter the formula.
Key takeaways
- If every formula on the sheet shows as text, Show Formulas is on: press Ctrl+` to turn it off.
- If only some cells show the formula, they are probably formatted as Text. Change them to General, then re-enter them.
- Changing the format alone is not enough: press F2 and Enter so Excel reads the formula again.
- A space or apostrophe before the = makes Excel store the formula as plain text.
On this page+
- Why does Excel show the formula instead of the result?
- Cause 1: Show Formulas is turned on
- Cause 2: The cell is formatted as Text
- Cause 3: A space or apostrophe before the equals sign
- Cause 4: The equals sign is missing or wrong
- How to check a formula once it calculates
- How to stop it happening again
- Practise it
When an Excel formula is showing as text, such as =SUM(B2:B6) instead of the total, Excel is treating your formula as words rather than a calculation. The cause is almost always one of four things: Show Formulas is on, the cell is formatted as Text, there is a character before the =, or the = is missing. This guide shows how to tell which one you have and how to fix it in seconds.
Why does Excel show the formula instead of the result?#
Excel only calculates an entry that it reads as a formula. That means the first character must be = and the cell must not be set to store text. If either condition fails, Excel keeps exactly what you typed and shows it in the cell.
Use this quick check to find the cause:
| What you see | Most likely cause | Fix |
|---|---|---|
| Every formula on the sheet shows as text, and columns look wider | Show Formulas is on | Press Ctrl+` |
| Only some cells show the formula | Cells formatted as Text | Set to General, then re-enter |
The formula bar shows '= or = at the start | Apostrophe or space before = | Delete the extra character |
The cell shows SUM(B2:B6) with no = | Missing equals sign | Add = at the start |
If you are new to formulas, our guide to writing your first Excel formula explains the basic rule: every formula starts with =.
Cause 1: Show Formulas is turned on#
Show Formulas makes every cell on the sheet display its formula instead of its result. It is useful for checking your work, but easy to switch on by accident, because its shortcut is one key away from common keys.
To turn it off:
- Keyboard: press **Ctrl+
** on Windows. Thekey (grave accent) is usually to the left of the 1 key. On a Mac, use Control+` (the Control key, not ⌘). - Ribbon: go to the Formulas tab and click Show Formulas in the Formula Auditing group, so it is no longer highlighted.
The setting belongs to one sheet. If another sheet in the same workbook looks normal, that confirms Show Formulas is the cause. You will also notice that the columns get wider while it is on, and the results come back as soon as you press the shortcut again.
Cause 2: The cell is formatted as Text#
A cell with the Text number format stores whatever you type as text, even a formula. This often happens when you add formulas to a column of IDs or codes that someone formatted as Text, or when data comes from another system.
To fix it:
- Select the cells that show formulas.
- On the Home tab, open the Number Format box and choose General. (You can also press Ctrl+Shift+~ to apply General, which you practise in the More formatting lesson.)
- Re-enter each formula: click the cell, press F2 and press Enter. On a Mac, press Control+U to edit the cell, or double-click it.
Step 3 is the one people miss. Changing the format does not make Excel re-read the cell. Until you re-enter it, the formula stays text.
Fix many cells at once#
If a whole column shows formulas, re-entering each one by hand is slow. After setting the cells to General, use Find and Replace:
- Select the cells.
- Press Ctrl+H (Mac: Control+H) to open Replace.
- Type
=in Find what and=in Replace with. - Click Replace All.
Replacing = with itself makes Excel re-enter every cell, so each formula is calculated.
Cause 3: A space or apostrophe before the equals sign#
If a formula starts with a space or an apostrophe, Excel treats the whole entry as text. The cell shows =B3*C3, and the formula bar shows '=B3*C3 or =B3*C3.
This happens when you copy formulas from a web page, an email or a document, which may add a leading space. It also happens when someone types an apostrophe on purpose to show a formula as an example.
To fix it, click the cell, press F2, move to the start of the entry with Home, delete the extra character and press Enter. An apostrophe does not show in the cell itself, so always check the formula bar.
Cause 4: The equals sign is missing or wrong#
Without = at the very start, Excel sees plain text. SUM(B2:B6) is just a label. A formula that starts with a different character, such as + in some older habits, may still work, but a formula typed in quotes, like "=SUM(B2:B6)", is always text.
Check the formula bar. If there is no = at the start, add it and press Enter. If the formula also has a mistake inside, Excel tells you once it tries to calculate it, so fix one problem at a time.
How to check a formula once it calculates#
Once the result appears, make sure it is the right result. A formula can calculate and still be wrong. The usual problems are:
- Order of operations.
=B2+B3*2multiplies first. Use brackets when you mean(B2+B3)*2. Our article on Excel order of operations explains why. - Numbers stored as text. If a total looks too small, some inputs may be text. See how to find and fix numbers stored as text.
- A result that never changes. If the result is stuck when you change an input, calculation may be set to Manual. Our guide on why an Excel formula is not updating covers that case.
How to stop it happening again#
A few habits prevent most of these problems:
- Format input columns as General or a number format, not Text, unless they really hold text like codes with leading zeros.
- When you copy a formula from a web page, paste it into the formula bar and check the first character.
- If you need to show a formula as an example in a report, use an apostrophe on purpose and add a note, so no one mistakes it for a broken cell.
- Learn the Show Formulas shortcut, so if every cell suddenly shows formulas you know to press Ctrl+` again.
These are quick fixes, and spotting them fast is part of the basic skill set covered in how long it takes to learn Excel for a job.
Practise it#
Try the exercise on this page: one pay formula was typed with an apostrophe, and you re-enter it so it calculates. Then practise writing formulas that start with = in a live spreadsheet, and use the More formatting lesson to reset a cell to General with one shortcut.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
D3 shows =B3*C3 as text because it was typed with an apostrophe in front. Click D3, type the formula =B3*C3 again (with no apostrophe or space before the =) and press Enter.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Pay | ||||
| 2 | |||||
| 3 | =B3*C3 | ||||
| 4 | |||||
| 5 | |||||
| 6 | |||||
| 7 |
Tip: Start with the equals sign itself. Anything before the = (a space or an apostrophe) turns the formula into text.
Practise this in a lesson
Frequently asked questions
Why is Excel showing the formula instead of the result?
Either Show Formulas is turned on for the sheet, or the cell is formatted as Text. Press Ctrl+` to toggle Show Formulas, or change the cell to General and re-enter the formula with F2 and Enter.
How do I turn off Show Formulas in Excel?
Press Ctrl+` (the grave accent key, usually to the left of 1), or go to the Formulas tab and click Show Formulas so it is no longer highlighted. The setting only affects the current sheet.
I changed the cell to General but it still shows the formula. Why?
Excel only reads the cell again when you re-enter it. Click the cell, press F2 (or double-click it) and press Enter. For many cells at once, use Find and Replace to replace = with =.
Why does my formula start with an apostrophe?
An apostrophe at the start tells Excel to store the entry as text, so the formula never runs. Edit the cell, delete the apostrophe and press Enter.