Excel Displaying Formula Instead of Result? How to Fix It
In this article
To stop Excel from displaying a formula instead of its result, the most common fix is to ensure the cell is not formatted as "Text" and that "Show Formulas" mode is turned off. If the cell is formatted as Text, Excel treats the formula as a literal string of characters. If "Show Formulas" is active, Excel overrides all calculations to display the underlying logic for auditing purposes. Changing the cell format to General and toggling the formula view setting usually resolves the issue immediately.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- The specific workbook and worksheet where the formulas are not calculating.
Step-by-Step
Depending on why the formula is visible, one of the following three methods will fix the problem. Try them in this order.
Method 1: Disable "Show Formulas" Mode
Excel has a built-in mode that allows users to see every formula in a sheet at once. If this was accidentally toggled on, every cell will show its code regardless of formatting.
- Open the worksheet where the formulas are visible.
- Go to the Formulas tab on the top Ribbon.
- In the Formula Auditing group, look for the Show Formulas button.
- If the button is highlighted or shaded, click it once to turn it off.
- Alternatively, use the keyboard shortcut Ctrl + ` (the grave accent key, usually located just above the Tab key).
Method 2: Change Cell Formatting from Text to General
If only a few specific cells are showing formulas while others work correctly, the cells are likely formatted as "Text." When a cell is set to Text, Excel ignores the equals sign (=) and treats the entry as a label.
- Select the cell or range of cells displaying the formula.
- Go to the Home tab on the Ribbon.
- In the Number group, click the dropdown menu (which likely says "Text").
- Select General from the list.
- Important: The result will not appear immediately after changing the format. You must "refresh" the cell.
- Double-click the cell to enter Edit mode, then press Enter. If you have many cells, select the range, press Ctrl + H (Find and Replace), find = and replace it with =, then click Replace All.
Method 3: Check for Leading Spaces or Apostrophes
Excel only recognizes a formula if it begins exactly with an equals sign. If there is any character before the equals sign, it is treated as text.
- Click on the cell displaying the formula.
- Look at the Formula Bar at the top of the screen.
- Check if there is a single quote/apostrophe (') at the very beginning of the formula. This is a hidden character used to force text formatting.
- Check if there is a space before the equals sign ( =SUM...).
- Delete the apostrophe or the space and press Enter.
Common Mistakes
- Forgetting to "Enter" the cell: Many users change the cell format from Text to General and wonder why the formula is still there. You must re-trigger the calculation by double-clicking the cell and pressing Enter.
- Incorrect Shortcut Keys: Users often press Ctrl + 1 (which opens Format Cells) when they meant to press Ctrl + ` to toggle formula view.
- Missing Equals Sign: It sounds simple, but forgetting the = at the start of the expression will cause Excel to treat the entry as a standard text string.
Tips
- Use the Fill Handle: If you have one cell working correctly and others formatted as text, you can drag the fill handle (the small square at the bottom-right of the cell) down to apply the correct "General" formatting and calculation to the rest of the column.
- Audit with Caution: Use the "Show Formulas" mode intentionally when you are handing a sheet over to a colleague so they can verify your logic without clicking every single cell.
- Consistent Formatting: To avoid this issue in the future, always set your column formatting to "General" or "Number" before you begin typing your formulas.
Troubleshooting
If the steps above did not resolve the issue, try these steps in order of complexity:
- Check Calculation Options: If the formula shows a result, but the result is wrong or doesn't update, your workbook might be set to Manual Calculation. Go to Formulas > Calculation Options and ensure Automatic is selected.
- Check for Circular References: Look at the bottom-left status bar of the Excel window. If it says "Circular References," your formula is referring to its own cell, which can sometimes cause calculation errors or strange display behavior.
- Restart Excel: Occasionally, a glitch in the application's rendering can cause display issues. Save your work, close Excel completely, and reopen the file.
- Test in a New Sheet: Copy the formula and paste it into a brand new, blank workbook. If it works there, the original sheet may have corrupted formatting or a specific protection setting enabled.
Frequently Asked Questions
Why does my formula show as text only in some cells?
This usually happens because those specific cells were formatted as "Text" before the formula was entered. Excel treats anything entered into a Text-formatted cell as a literal string, ignoring the mathematical function.
Does the "Show Formulas" setting affect the whole workbook?
The "Show Formulas" toggle applies only to the active worksheet. If you have multiple tabs, you will need to toggle it for each sheet or check the settings individually.
Will changing the format to General delete my data?
No. Changing the format from Text to General does not delete the formula; it simply tells Excel to stop treating the content as a label and start treating it as a potential calculation.
Can a hidden apostrophe cause this?
Yes. An apostrophe at the start of a cell is a special instruction to Excel to treat the entire cell as text. It is often invisible in the cell itself but visible in the Formula Bar.
Is there a way to fix 1,000 cells at once without double-clicking each one?
Yes. Select the entire column, go to Home > Number and select General. Then, use the Find and Replace (Ctrl + H) tool to replace "=" with "=" across the selection. This forces Excel to re-evaluate every formula in the range.