Excel Formula Showing Text Instead of Result? Fix It
In this article
If an Excel formula is showing its own text instead of calculating a result, the cell is almost certainly formatted as Text, or the formula was entered with a leading apostrophe or space. The quickest fix is to change the cell format to General, then re-enter the formula by pressing F2 and Enter. Excel does not recalculate a formula that it thinks is text, so the formula sits there as a literal string.
What You'll Need
- Excel for Windows, Excel for Mac, or Excel for the web (steps are nearly identical; menu labels can differ slightly by version, device, or region).
- The cell containing the formula that shows as text.
- No add-ins or special tools are required.
Step-by-Step
- Confirm it is really text. Click the cell. If the formula appears in the formula bar but the cell shows the formula text, Excel is treating the entry as text. If the formula bar shows a result and the cell shows something else, the issue is different (see Troubleshooting).
- Check for a leading apostrophe or space. Look at the formula bar. A leading apostrophe (') is invisible in the cell but forces text. A leading space before the equals sign also turns the formula into text. Delete either character.
- Change the cell format to General. Select the cell (or the whole column), then go to the Home tab and open the Number Format dropdown. Choose General. On Mac, the same dropdown is on the Home tab. In Excel for the web, the dropdown is also on the Home tab.
- Re-enter the formula. Press F2 to edit the cell, then press Enter. This forces Excel to re-parse the entry as a formula. On Mac, F2 may require the fn key; you can also double-click the cell and press Enter.
- If the whole column is affected, convert it in one go. Select the column, set the format to General, then use Data > Text to Columns and click Finish without changing any settings. This re-parses each cell and converts text-formatted formulas into live formulas.
- Check the Show Formulas setting. If every formula in the sheet shows as text, go to the Formulas tab and look at Show Formulas. If it is on, click it to turn it off. The keyboard shortcut Ctrl+` (the grave accent key) toggles this on Windows; on Mac it is Ctrl+` as well.
- Verify calculation is automatic. Go to Formulas > Calculation Options and make sure Automatic is selected. If Manual is selected, formulas will not update until you press F9.
- Test with a simple formula. In an empty cell, type =1+1 and press Enter. If it shows 2, your formula syntax is fine and the problem was formatting. If it still shows =1+1, the cell or sheet is still in text mode.
Common Mistakes
- Formatting the cell but not re-entering the formula. Changing the format alone does not convert an existing text entry. You must edit and confirm the cell (F2, then Enter) or use Text to Columns.
- Leaving a leading apostrophe. The apostrophe is a text prefix and is not visible in the cell, so it is easy to miss. Check the formula bar.
- Typing a space before the equals sign. Excel then treats the whole entry as text. Remove the space.
- Using the wrong delimiter. In some regions, formulas use a semicolon instead of a comma. If your formula shows as text after fixing the format, check whether your region expects semicolons.
- Confusing Show Formulas with a formatting problem. If all formulas display as text at once, the Show Formulas toggle is the usual cause, not cell formatting.
Tips
- To prevent the problem, format columns as General before typing formulas, especially when pasting data from other sources.
- When pasting, use Paste Special > Values only for numbers, and paste formulas as formulas rather than text.
- If you need to display a formula as text on purpose, put an apostrophe before the equals sign or format the cell as Text before entering it.
- Use Ctrl+` to quickly check whether Show Formulas is on; it toggles the view in both Windows and Mac versions.
- After converting a column with Text to Columns, verify a few cells to make sure references and formats survived.
Troubleshooting
- The cell still shows the formula after F2 and Enter. The cell may still be formatted as Text. Re-check the Number Format dropdown and set it to General, then repeat F2 and Enter.
- Only one cell is affected. That cell likely has a leading apostrophe or space. Clear the cell completely (press Delete), then retype the formula.
- All formulas on the sheet show as text. Turn off Show Formulas on the Formulas tab, or press Ctrl+`.
- The formula shows a result but it is wrong. This is a calculation issue, not a text issue. Check Calculation Options is set to Automatic and press F9 to recalculate.
- Text to Columns did not convert the formulas. Make sure you selected the whole column and clicked Finish without choosing a delimiter that splits the formula. Undo with Ctrl+Z and try again.
- The file is in a protected view or shared mode. Some editing features are limited. Close and reopen the file, or check with the file owner about protection settings.
Frequently Asked Questions
Why does my Excel formula show as text instead of calculating?
The cell is formatted as Text, or the entry has a leading apostrophe or space. Change the format to General and re-enter the formula with F2 and Enter.
How do I convert a whole column of text formulas to real formulas?
Select the column, set the format to General, then use Data > Text to Columns and click Finish. This re-parses each cell.
What does it mean when every formula in the sheet shows as text?
The Show Formulas option is turned on. Go to Formulas > Show Formulas to turn it off, or press Ctrl+`.
Can I make a formula display as text on purpose?
Yes. Type an apostrophe before the equals sign, or format the cell as Text before entering the formula.
Why did my formula work yesterday but shows as text today?
The cell format may have changed, or the file may have been opened in a mode that treats entries as text. Check the Number Format and re-enter the formula.
Does this fix work in Excel for the web and on Mac?
Yes. The menus are nearly identical; on Mac, F2 may need the fn key, and you can double-click the cell instead.