A formula that shows up as text is almost always one of three things: the cell is formatted as Text, the formula was typed with a leading apostrophe or space, or Excel is set to Show Formulas mode. The quickest fix is to select the cell, press Ctrl+Shift+` (the grave accent key, usually under Esc) to toggle Show Formulas off, then check the cell's number format and set it to General. If the formula still sits there as plain text, re-enter it: press F2, then Enter, or use Find & Replace to swap the leading = for =. This guide walks through each cause in the order that fixes most cases fastest, plus what to do when none of them work.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel for the web (menu labels differ slightly by version, device and region, and the web version has fewer options).
  • The workbook containing the misbehaving formula, saved somewhere you can edit.
  • About five minutes. No add-ins or macros are required.

Step-by-Step

  1. Confirm it is really text, not a broken formula. Click the cell and look at the formula bar. If the formula bar shows the formula but the cell displays the same text, the cell is formatted as Text or Show Formulas is on. If the formula bar also shows plain text, the entry was stored as text from the start. This distinction decides which step below you need.
  2. Turn off Show Formulas. On Windows, press Ctrl+Shift+`. On Mac, press Ctrl+` (Control plus the grave accent key). You can also go to the Formulas tab and click Show Formulas to toggle it. If every formula in the sheet suddenly displays as text, this was the cause.
  3. Check the number format. Select the cell (or the whole column), right-click, choose Format Cells, open the Number tab and pick General. A cell formatted as Text keeps any formula you type as literal text, even after you press Enter.
  4. Re-enter the formula. Changing the format alone does not convert an existing text entry. Press F2 to enter edit mode, then press Enter. Excel re-evaluates the cell and the result appears. For a whole column, select the range, open Data > Text to Columns, click Finish immediately, and Excel re-parses each cell.
  5. Remove leading apostrophes and spaces. A cell that begins with an apostrophe ('=SUM(A1:A5)) is forced to text. Delete the apostrophe in the formula bar. Also check for a space before the equals sign, which Excel treats as text. The formula must start with = as the very first character.
  6. Check the cell is not locked inside a text-formatted table column. If the formula sits in a column that was imported as text, reformat the entire column to General before re-entering. Formatting only the single cell can leave neighbouring cells in the same state.
  7. Verify calculation mode. Go to Formulas > Calculation Options and make sure Automatic is selected. On Manual, a valid formula may appear stale or unchanged until you press F9.
  8. Test in a clean cell. Type =1+1 in an empty cell and press Enter. If it returns 2, the workbook is fine and the problem is isolated to the original cell. If it returns =1+1, the sheet or workbook is still in a text or Show Formulas state, so repeat steps 2 and 3.

Common Mistakes

  • Changing the format and expecting the formula to run. Reformatting to General does not re-evaluate existing text. You must re-enter the cell (F2 then Enter) or use Text to Columns.
  • Deleting the equals sign. Some users retype the formula without =, which Excel stores as text. Always start with =.
  • Leaving a leading space. A space before = is invisible and turns the formula into text. Check the formula bar character by character.
  • Formatting only one cell in an imported column. The rest of the column stays Text, so the next formula you type fails the same way.
  • Confusing Show Formulas with a display bug. If every formula in the sheet shows as text, it is almost always the Show Formulas toggle, not corruption.
  • Pasting from a website or chat. Pasted formulas often carry a leading apostrophe or non-breaking space. Use Paste Special > Values, then retype the formula.

Tips

  • Press Ctrl+` (Windows) or Ctrl+` (Mac) as a quick diagnostic: if the whole sheet flips between results and formulas, you know the toggle was the cause.
  • To convert a whole block of text-stored formulas at once, select it and run Data > Text to Columns > Finish. This is faster than editing each cell.
  • Before importing data, format the destination columns as General, not Text, so formulas behave normally afterwards.
  • Use the formula bar to inspect the true contents. The cell display can hide an apostrophe or a leading space.
  • If you share the workbook, note that Excel for the web shows fewer formatting options; open it in the desktop app to change number formats reliably.

Troubleshooting

The formula still shows as text after all steps. Close and reopen the workbook. If the problem persists, copy the formula into a brand-new workbook. If it works there, the original file has a formatting or import issue in that sheet.

Only one column is affected. The column is likely formatted as Text or was pasted as text. Select the whole column, set the format to General, then re-enter the formulas with F2 and Enter, or use Text to Columns.

The formula shows a result but it is wrong. This is a different problem: check for circular references, broken cell references, or Calculation Options set to Manual. Press F9 to force a recalc.

Excel shows the formula with an @ symbol or a #NAME? error. The formula may use a function not available in your Excel version, or a name that does not exist. Check spelling and confirm the function is supported in your version.

Nothing works and the file looks corrupted. Open Excel, use File > Open and choose the workbook, then try Open and Repair. Keep a backup copy first, because repair can alter formatting.

Frequently Asked Questions

Why does my formula show as text instead of calculating?

The cell is formatted as Text, contains a leading apostrophe or space, or Show Formulas is switched on. Check the formula bar and the number format first.

How do I convert a whole column of text formulas back to real formulas?

Select the column, set the format to General, then use Data > Text to Columns and click Finish. Alternatively, re-enter each cell with F2 and Enter.

What is the keyboard shortcut to show or hide formulas?

On Windows it is Ctrl+Shift+` (grave accent). On Mac it is Ctrl+`. The same toggle is on the Formulas tab as Show Formulas.

Why did my formula work yesterday and show as text today?

Something changed the cell format, the sheet was re-imported, or Show Formulas was toggled. Check the number format and the Formulas tab first.

Does formatting a cell as General fix an existing text formula?

No. It only allows future entries to calculate. You must re-enter the existing cell or use Text to Columns to re-parse it.

Can I stop Excel from treating pasted formulas as text?

Use Paste Special > Values and retype the formula, or paste into a General-formatted cell. Formulas copied from web pages often carry hidden characters.