Excel Formula Shown as Text: Fix and Prevent
In this article
If Excel is showing your formula as text instead of calculating it, the fix is almost always one of three things: the cell is formatted as Text, the formula was typed with a leading apostrophe, or the calculation mode is set to Manual. Check the cell format first, change it to General, then re-enter the formula by pressing F2 and Enter. That single sequence resolves the majority of cases.
This guide walks through why Excel displays formulas as plain text, how to convert them back to working formulas, and how to keep it from happening again. The steps apply to Excel for Microsoft 365, Excel 2019 and later on Windows and Mac. Menu labels can differ slightly by version, device and region, so if a label does not match exactly, look for the closest equivalent.
What You'll Need
- Excel installed on Windows or Mac (the desktop app gives the most reliable results; Excel for the web has fewer format controls)
- The workbook containing the affected cells, saved and backed up if it contains important data
- Basic familiarity with selecting cells and using the formula bar
Step-by-Step
- Identify the affected cells. Click a cell that shows a formula as text. Look at the formula bar at the top. If the formula bar shows the formula with an apostrophe at the start, or shows the formula while the cell displays the same text, you have confirmed the problem.
- Check the cell format. Select the cell or range. On the Home tab, look at the Number Format box in the Number group. If it says Text, that is the cause. Change it to General. On Mac, the same control sits in the Home tab ribbon.
- Re-enter the formula. Changing the format alone does not recalculate existing text. Press F2 to enter edit mode, then press Enter. Excel re-evaluates the cell as a formula. For a whole column, select the range, open Find & Replace (Ctrl+H on Windows, Command+H on Mac), and replace the leading apostrophe with nothing. Alternatively, use Text to Columns on the Data tab with Delimited selected and no delimiters, which forces Excel to re-parse each cell.
- Check the Show Formulas setting. If every formula in the sheet appears as text, the worksheet is in Show Formulas mode. On the Formulas tab, click Show Formulas to toggle it off. The keyboard shortcut Ctrl+` (the grave accent key, usually below Esc) does the same on Windows; on Mac it is Control+`.
- Verify calculation mode. Go to Formulas > Calculation Options and confirm Automatic is selected. If Manual is chosen, formulas do not recalculate until you press F9. Switch back to Automatic unless you have a specific reason to keep manual mode.
- Remove stray spaces or equals signs. A formula preceded by a space, or typed without the leading equals sign, is treated as text. Click the cell, check the formula bar, and remove any leading space. If the equals sign is missing, add it at the start.
- Confirm the cell is not inside a text-formatted table column. If the formula sits in an Excel Table, the column may have inherited a Text format. Select the column, set the format to General, then re-enter the formula.
- Save and test. Save the workbook, then type a simple test formula such as =1+1 in an empty cell. If it returns 2, the calculation engine is working and your original formula should now evaluate correctly.
Common Mistakes
- Changing the format and expecting an instant fix. Formatting a cell as General does not convert existing text into a formula. You must re-enter or re-parse the cell.
- Typing the apostrophe deliberately. A leading apostrophe tells Excel to treat the entry as text. It is invisible in the cell but visible in the formula bar, and it is a frequent cause of formulas appearing as text.
- Leaving calculation on Manual. After importing or opening a large workbook, Excel may be left in Manual mode. Formulas look broken but are simply waiting for a recalculation.
- Pasting from another program. Copying formulas from a text editor, email or web page can bring hidden formatting or leading characters that force text mode. Use Paste Special > Values or retype the formula.
- Assuming Show Formulas is off. It is easy to trigger accidentally with the Ctrl+` shortcut. If the whole sheet looks like a list of formulas, this is the first thing to check.
Tips
- Use the Evaluate Formula tool on the Formulas tab to step through a formula that is calculating but returning an unexpected result.
- If you need to display a formula as text on purpose, prefix it with an apostrophe or format the cell as Text before typing. This is useful for documentation or training sheets.
- Keep a habit of checking the Number Format box before typing formulas into a new column, especially in imported data.
- When sharing workbooks, note that Text-formatted cells can behave differently across Excel versions.
- Use Ctrl+` sparingly; it is a toggle, not a one-way switch, and pressing it again restores normal display.
Troubleshooting
If the steps above did not restore calculation, work through these checks in order:
- Restart Excel. Close and reopen the application. This clears temporary display glitches.
- Check the file type. A CSV file does not store formulas; it stores the displayed values. If you saved as CSV, formulas are lost. Reopen the original .xlsx file.
- Look for protected sheets. A protected worksheet may prevent recalculation or editing. On the Review tab, check whether Unprotect Sheet is available.
- Inspect for circular references. Excel may warn about a circular reference and stop calculating. Check the status bar for the warning and trace the dependency.
- Test in a new workbook. If a fresh workbook calculates normally, the issue is specific to the original file, not Excel itself.
- Repair the file. Use File > Open > Browse, select the file, and choose Open and Repair. Back up the file first, because repair can alter formatting.
Frequently Asked Questions
Why does Excel show my formula as text instead of calculating it?
The cell is usually formatted as Text, contains a leading apostrophe, or Excel is in Show Formulas or Manual calculation mode. Check the Number Format box first.
How do I convert a text formula back into a working formula?
Change the cell format to General, then press F2 and Enter. For a range, use Find & Replace to remove leading apostrophes or use Text to Columns to re-parse the cells.
What does the apostrophe at the start of a formula mean?
It tells Excel to treat the entry as text. The apostrophe is hidden in the cell but visible in the formula bar. Remove it and re-enter the formula to calculate.
Why do all formulas in my sheet appear as text at once?
Show Formulas mode is likely on. Go to Formulas > Show Formulas or press Ctrl+` to toggle it off.
Can I make Excel display a formula as text on purpose?
Yes. Format the cell as Text before typing, or start the entry with an apostrophe. This is useful for documentation.
Does saving as CSV affect formulas?
Yes. CSV files store only values, not formulas. Save in .xlsx format to keep formulas intact.