If Excel is displaying your formula as text instead of calculating it, the fix is usually one of three things: the cell is formatted as Text, the formula was typed with a leading apostrophe or space, or the Show Formulas option is turned on. Check the cell's number format first, switch it to General, then re-enter the formula by pressing F2 and Enter. That resolves the majority of cases in seconds.
What You'll Need
- Excel for Windows, Mac, or the web (steps are similar; menu labels can differ slightly by version, device, or region)
- The workbook where the formula is showing as text
- Basic familiarity with the formula bar and the Home tab
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 it as text. If the cell shows a result and the formula bar shows the formula, the cell is working normally and the issue is elsewhere (for example, a column too narrow to show the result).
- Check the number format. Select the cell (or the whole column). On the Home tab, look at the Number Format box. If it says Text, that is the cause. Change it to General. Changing the format alone does not recalculate existing text, so continue to the next step.
- Re-enter the formula. With the cell selected, press F2 to enter edit mode, then press Enter. This forces Excel to re-evaluate the cell as a formula. On Mac, F2 may require the fn key; you can also click in the formula bar and press Enter.
- Remove leading characters. If the formula still shows as text, look for a leading apostrophe (') or a space before the equals sign. The apostrophe is invisible in the cell but visible in the formula bar. Delete it, or retype the formula starting with =.
- Turn off Show Formulas. If every formula in the sheet shows as text, Show Formulas is likely on. Go to the Formulas tab and 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 Ctrl+` as well.
- Check the cell's alignment as a clue. Text is left-aligned by default and numbers are right-aligned. A formula that shows as text will usually sit on the left. This is a quick visual check before you change anything.
- Use Text to Columns for a whole column. Select the column, go to Data > Text to Columns, click Finish without changing any settings. This re-parses each cell and often converts text formulas back to real formulas. It works best when the column contains only formulas.
- Check for a hidden apostrophe in bulk. If many cells are affected, select the range, press Ctrl+H (Find and Replace), search for ' (apostrophe) and replace with nothing. Be careful: this removes apostrophes everywhere in the range, including inside text strings, so review before replacing.
- Verify calculation mode. If formulas calculate but show old results, the workbook may be set to Manual calculation. Go to Formulas > Calculation Options and choose Automatic. This is not the same as showing text, but it is a common source of confusion.
- Reopen or repair the file if nothing else works. Save a copy, close Excel, and reopen the workbook. If the problem persists in one file only, use File > Open > Browse, select the file, and choose Open and Repair. This can fix corrupted formatting that keeps cells as text.
Common Mistakes
- Changing the format but not re-entering the formula. Switching from Text to General does not convert existing text entries. You must edit and confirm each cell, or use Text to Columns.
- Typing an apostrophe on purpose. An apostrophe tells Excel to treat the entry as text. It is useful for part numbers, but it breaks formulas.
- Leaving a space before the equals sign. A leading space makes the entry text. Trim it.
- Confusing Show Formulas with a text format. Show Formulas displays every formula as text across the sheet. Toggling it off restores normal display without changing any cell.
- Formatting the whole column as Text before typing formulas. This is common when preparing a sheet for data entry. Set the format to General before entering formulas.
Tips
- Use the formula bar as the source of truth: if the formula bar shows =SUM(A1:A5) and the cell shows the same text, the cell is text.
- Press Ctrl+` to quickly check whether Show Formulas is on. It is a toggle, so pressing it again returns to normal view.
- When pasting formulas from another program, paste as plain text first, then re-enter the equals sign if needed. Pasting directly can bring in hidden characters.
- If you intentionally need to show a formula as text for documentation, type an apostrophe before the equals sign. That is the correct way to display a formula without calculating it.
- Keep a backup before using Find and Replace across a large range; it is easy to remove characters you meant to keep.
Troubleshooting
If the cell still shows text after changing the format and re-entering the formula, check the following in order. First, confirm the cell is not part of a merged cell or protected sheet that blocks editing; unprotect via Review > Unprotect Sheet if you have the password. Second, look for a leading equals sign that is actually a different character, such as a full-width equals sign pasted from a website; retype it manually. Third, check whether the workbook is in Compatibility Mode or an older file format; save as .xlsx and retry. Fourth, if only one sheet is affected, copy the data to a new sheet and re-enter formulas there. If the problem follows the file, use Open and Repair. If it follows Excel itself, repair the Office installation from Settings > Apps > Microsoft 365 > Modify > Quick Repair (Windows) or reinstall Office (Mac). None of these steps delete your data, but always keep a copy before repairing.
Frequently Asked Questions
Why does my formula show as text after I change the format to General?
Because changing the format does not re-evaluate existing entries. Press F2 then Enter on each affected cell, or use Data > Text to Columns and click Finish to convert a whole column.
How do I show a formula as text on purpose?
Type an apostrophe before the equals sign, for example '=SUM(A1:A5). Excel treats the entry as text and hides the apostrophe in the cell.
Why do all formulas in my sheet show as text at once?
Show Formulas is probably on. Go to Formulas > Show Formulas to turn it off, or press Ctrl+`.
Can I convert a whole column of text formulas back to real formulas?
Yes. Select the column, open Data > Text to Columns, and click Finish without changing any options. This re-parses each cell and usually restores the formulas.
Does this work in Excel for the web and Excel for Mac?
The same principles apply. Menu labels and keyboard shortcuts can differ slightly by version and platform; the Home tab number format and the Formulas tab are present in both.
What if the formula bar shows the formula but the cell shows a result?
That is normal behavior. The cell is calculating correctly. If the result looks wrong, check for manual calculation mode under Formulas > Calculation Options.