A formula that shows as text in Excel is almost always being treated as a plain string, not a calculation. The quickest fix is to select the cell, press F2 to enter edit mode, then press Enter. If that doesn't work, check that the cell's number format is not set to Text, and that the formula does not start with an apostrophe or a space. This guide walks through the reliable fixes in order, from the one-second fix to the settings that cause the problem in the first place.
What You'll Need
- Excel for Windows, Excel for Mac, or Excel for the web (steps are written for desktop Excel; the web version has the same core options but some menus differ).
- The workbook containing the formula that shows as text.
- No add-ins or special tools are required.
Step-by-Step
- Confirm the cell really contains a formula. Click the cell and look at the formula bar. If the formula bar shows the formula (for example
=A1+B1) but the cell displays that same text, the cell is formatted or stored as text. If the formula bar shows only the result, the cell is not the problem. - Re-enter the formula with F2 and Enter. Select the cell, press F2 (on Mac, Ctrl+U), then press Enter. This forces Excel to re-evaluate the cell. This alone fixes many cases where the cell was previously formatted as Text.
- Check the cell's number format. Right-click the cell, choose Format Cells, open the Number tab, and select General (or the format you want). If the format is Text, change it to General, then repeat step 2. A Text-formatted cell will not calculate even after you type an equals sign.
- Look for a leading apostrophe or space. Click the cell and inspect the formula bar. A leading apostrophe (') forces text and is not shown in the cell itself. Delete it. A leading space before the equals sign also turns the formula into text; remove it.
- Check for Show Formulas mode. On the Formulas tab, look at the Show Formulas button. If it is highlighted, every formula in the sheet is displayed as text. Click it once to turn it off, or press Ctrl+` (the backtick key, usually below Esc).
- Fix a whole column at once. If many cells are affected, select the column, set the format to General (step 3), then use Data > Text to Columns, click Finish without changing any options. This re-parses each cell and converts text formulas into real formulas.
- Check the calculation mode. Go to Formulas > Calculation Options and make sure Automatic is selected. In Manual mode, formulas do not recalculate until you press F9, which can look like text that never updates.
- Inspect for hidden characters. If the formula came from a website or another program, it may contain a non-breaking space or other invisible character. Delete the formula and retype it manually, or paste it into Notepad first, then copy it back.
Common Mistakes
- Changing the format but not re-entering the formula. Switching a cell from Text to General does not recalculate existing content. You must press F2 then Enter, or use Text to Columns, for the change to take effect.
- Typing an apostrophe by accident. The apostrophe is invisible in the cell, so people often miss it. Always check the formula bar, not just the cell display.
- Leaving a space before the equals sign. A formula must start with = as the very first character. A leading space makes Excel treat it as text.
- Assuming Show Formulas is off. The Ctrl+` shortcut is easy to hit by accident, and the button stays highlighted until you click it again.
- Formatting the whole sheet as Text before pasting data. If you set a column to Text and then paste formulas into it, they will stay as text. Set the format to General before pasting, or convert afterward with Text to Columns.
Tips
- Use Formulas > Show Formulas as a quick diagnostic: if every formula in the sheet appears as text, the mode is on, not the cell format.
- When importing data from CSV or another system, import into a General-formatted area, then apply formats afterward. This avoids the text-formula trap.
- Press Ctrl+` (backtick) to toggle Show Formulas on and off quickly. On some keyboards the backtick is next to the 1 key.
- If only one cell is affected, retyping the formula from scratch is often faster than diagnosing the exact cause.
- Keep an eye on the formula bar as you click cells: it shows the true stored content, including apostrophes and leading spaces.
Troubleshooting
If the steps above did not fix it, work through these checks in order.
- The cell still shows text after F2 and Enter. Re-check the number format. If it is still Text, the re-entry will not help. Set it to General first, then repeat.
- Only some cells are affected. Select just those cells and run Text to Columns on the selection. This is safer than converting an entire column that may contain real text you want to keep.
- The formula contains a function name Excel does not recognize. If you see #NAME? instead of the formula text, the issue is different: check spelling and that the function exists in your Excel version.
- The file is in a protected view or read-only mode. Formulas may not calculate until you enable editing. Look for the yellow bar at the top and click Enable Editing.
- The workbook is shared or has calculation set to manual. Set Calculation Options to Automatic, then press F9 to force a full recalc.
- Still stuck? Copy the formula text, delete the cell contents, set the format to General, and paste the formula back. If it still shows as text, retype it manually to rule out hidden characters.
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 formula carries a leading apostrophe or space. Set the cell to General, then 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 and converts text formulas into working formulas.
What does Ctrl+` do in Excel?
It toggles Show Formulas mode, which displays every formula in the sheet as text instead of its result. Press it again to turn the mode off.
Why does the formula bar show the formula but the cell shows text?
That is the classic sign of a Text-formatted cell or a leading apostrophe. Check Format Cells and the formula bar for an apostrophe or space, then fix and re-enter.
Can I stop Excel from treating new entries as text?
Yes. Format the range as General before typing or pasting. Avoid pre-formatting columns as Text unless you specifically need text-only entry.
Does this work in Excel for the web?
The core fixes (F2 then Enter, Format Cells to General, Show Formulas) work in Excel for the web, though menu labels and the backtick shortcut may differ slightly by version and browser.