Excel shows a formula as text because the cell is formatted as Text, the formula is preceded by an apostrophe, or the Show Formulas view is switched on. The fix is to set the cell format to General, remove any leading apostrophe, and press F2 then Enter so Excel recalculates the entry. If the formula still displays literally, check that the formula starts with an equals sign and that the formula bar is not in manual calculation mode.

What You'll Need

  • Your Excel workbook open on desktop Excel for Windows or Mac (the steps below use the desktop ribbon; Excel for the web and mobile apps have the same core options but different menu locations).
  • The cell or range that is showing the formula as text.
  • Access to the Formulas tab and the Home tab on the ribbon.

Step-by-Step

  1. Confirm it is actually a formula, not just text. Click the cell and look at the formula bar. If the formula bar shows an apostrophe before the equals sign (for example '=SUM(A1:A5)), the apostrophe is forcing text. If the formula bar shows the formula without an apostrophe but the cell displays it as text, the cell format is the likely cause.
  2. Check Show Formulas. Go to the Formulas tab and look at the Show Formulas button. If it is highlighted, click it once to turn it off. The keyboard shortcut Ctrl+` (the grave accent key, usually below Esc) toggles the same view. This is the fastest check because it affects the whole sheet, not one cell.
  3. Change the cell format to General. Select the cell or range, go to the Home tab, open the Number Format dropdown (it may show Text), and choose General. Do not use the Increase Decimal or currency buttons; pick General from the list. Formatting alone does not always recalculate an existing entry, so continue to the next step.
  4. Re-enter the formula. With the cell selected, press F2 to enter edit mode, then press Enter. On Mac, F2 may require the Fn key depending on your keyboard settings; you can also click in the formula bar and press Enter. This forces Excel to parse the cell contents again as a formula.
  5. Remove a leading apostrophe if present. If the formula bar shows an apostrophe, delete it, then press Enter. The apostrophe is a text prefix, not part of the formula, and it will keep the cell as text no matter what format you apply.
  6. Check the equals sign. A formula must begin with =. If the cell contains SUM(A1:A5) without the equals sign, Excel treats it as text. Add the equals sign and press Enter.
  7. Verify calculation mode. Go to Formulas > Calculation Options and confirm Automatic is selected. If Manual is selected, formulas will not recalculate until you press F9. Switch back to Automatic unless you have a specific reason to stay manual.
  8. Test with a simple formula. In an empty cell, type =1+1 and press Enter. If that shows 2, Excel is calculating normally and the problem is limited to the original cell. If it shows =1+1 as text, the sheet or workbook setting is the cause, so repeat steps 2 and 7.

Common Mistakes

  • Changing the format but not re-entering the cell. Setting a cell from Text to General does not always convert an existing text entry. You must edit and confirm the cell (F2 then Enter) for Excel to re-parse it.
  • Leaving the apostrophe in place. The apostrophe is invisible in the cell but visible in the formula bar. It overrides the cell format, so the formula stays text until you delete it.
  • Typing a space before the equals sign. A leading space makes Excel treat the entry as text. Delete any spaces before =.
  • Formatting the whole column as Text by habit. If you paste data into a column formatted as Text, formulas pasted there will show as text. Format the destination as General before pasting, or use Paste Special and choose the appropriate option.
  • Confusing Show Formulas with a broken formula. When Show Formulas is on, every formula in the sheet displays as text. Users often reformat cells unnecessarily before noticing the toggle.

Tips

  • Use Ctrl+` to toggle Show Formulas quickly; it is the same shortcut on Windows and Mac Excel.
  • If you import or paste formulas from another program, paste as plain text first, then re-enter the formula, or use Text to Columns to force Excel to reinterpret the cell contents.
  • To convert a whole column of text formulas at once, select the column, set the format to General, then use Data > Text to Columns and click Finish without changing any delimiter settings. This re-parses each cell.
  • Keep the formula bar visible (View > Formula Bar) so you can see apostrophes, spaces and the equals sign without guessing.
  • If you share the workbook, check whether the other user has Show Formulas enabled; the setting is per window, not saved in the file, so it can look like a file problem when it is a view setting.

Troubleshooting

If the formula still shows as text after the steps above, work through these checks in order.

  • The cell is locked or protected. If the sheet is protected, you may not be able to edit the cell. Go to Review > Unprotect Sheet and enter the password if you have it. Do not remove protection from a workbook you do not own.
  • The formula is inside a text-formatted table column. Select the column inside the table, set the number format to General, then re-enter the formula. Table columns can carry their own formatting that overrides the sheet default.
  • The workbook is in a compatibility mode. If the title bar shows Compatibility Mode, save a copy in the current .xlsx format and reopen it. Some older formats handle formula parsing differently.
  • Calculation is set to Manual for the workbook. Check Formulas > Calculation Options again; the setting can be workbook-specific and may have been saved that way.
  • The entry is genuinely text, such as a label. If the cell was meant to show the formula as documentation, prefix it with an apostrophe deliberately and leave the format as Text. That is the correct behavior, not a fault.
  • Still stuck? Copy the formula text into a new blank cell in a new worksheet and press Enter. If it calculates there, the original cell or sheet has a formatting or protection issue. If it does not, the formula itself has a syntax problem, such as a missing parenthesis or an invalid function name.

Frequently Asked Questions

Why does my formula show as text after I paste it?

The destination cell is probably formatted as Text, or the pasted content includes a leading apostrophe or space. Set the cell to General, then press F2 and Enter to re-parse it.

Does changing the format to General fix existing formulas automatically?

Not always. Existing text entries may need to be re-entered (F2 then Enter) before Excel treats them as formulas. New entries in a General-formatted cell will calculate normally.

Why do all formulas in my sheet show as text at once?

Show Formulas is likely turned on. Go to Formulas > Show Formulas and click it off, or press Ctrl+`.

Can I convert a whole column of text formulas in one go?

Yes. Select the column, set the format to General, then use Data > Text to Columns and click Finish. This re-parses each cell without changing the data.

Why does a formula work in one cell but not another?

The non-working cell probably has a Text format, a leading apostrophe, or is inside a protected sheet. Compare the formula bar contents and the number format of both cells.

Is there a way to stop Excel from treating new entries as text?

Format the range as General before typing, and avoid pasting from sources that add apostrophes. If you routinely paste formulas, use Paste Special and choose the option that matches your data.