If your Excel formula appears as plain text instead of calculating, the most common cause is that the cell is formatted as Text. To fix it, select the cell, go to the Home tab, change the number format from Text to General, then press F2 and Enter to recalculate. If that doesn’t work, check for a leading apostrophe, missing equals sign, or accidental space before the formula.
Why Excel Shows Formulas as Text
Excel normally evaluates anything starting with an equals sign as a formula. When it displays the formula as text, one of several things has happened:
- Cell format is Text: This is the most frequent culprit. When a cell is pre-formatted as Text, Excel treats the entire entry as a string, so
=A1+B1appears literally. - A leading apostrophe: Typing an apostrophe before the equals sign (e.g.,
'=A1+B1) forces Excel to treat it as text. The apostrophe is invisible in the cell but appears in the formula bar. - A space or other character before =: A space, tab, or non-breaking character before the equals sign breaks the formula.
- Show Formulas mode is on: If you accidentally pressed Ctrl+` (backtick), Excel displays all formulas instead of results. This is not the same as text, but it looks similar.
How to Fix a Text-Formatted Cell
Here are the steps to convert a text-looking formula back to a working one:
- Select the cell or range of cells.
- Go to the Home tab.
- In the Number group, open the format dropdown (it may say “Text”). Change it to General.
- Click into the formula bar (or press F2) and press Enter. This forces Excel to re-evaluate the cell.
- If there is a leading apostrophe, delete it from the formula bar.
- If there is a space before the equals sign, remove it.
For multiple cells, select them all, change format to General, then use Find & Replace (Ctrl+H) to replace = with =—this trick forces re-evaluation. On a Mac, use Cmd+H.
Preventing the Problem in the Future
To avoid this issue, be careful when importing data or when formatting cells before typing. Here are some tips:
- Don’t pre-format a column as Text unless you truly need it (e.g., for phone numbers or ZIP codes).
- If you import a CSV file, use the Text Import Wizard and choose “General” for columns that contain formulas.
- Use the keyboard shortcut Ctrl+` to toggle Show Formulas mode off if it’s accidentally on.
- When copying formulas from the web, paste as values first, then re-type the equals sign if needed.
Excel for the Web and Mac Differences
In Excel for the web, the fix is the same: select the cell, go to the Home tab, change format to General, then press F2 and Enter. On a Mac, the ribbon path is identical, but the shortcut for Show Formulas is Ctrl+` as well (or Cmd+` on some keyboards). The Find & Replace shortcut is Cmd+H.
Common Misconception: “Text” vs. “Show Formulas”
Many users confuse the two. When Show Formulas is on, every cell shows its formula, but the cell is still a formula—it just displays the underlying expression. To turn it off, press Ctrl+` (backtick) or go to Formulas tab > Formula Auditing > Show Formulas. In contrast, a text-formatted cell is not a formula at all; it’s a string. You can tell the difference by looking at the cell alignment: text is left-aligned by default, numbers/right-aligned. But the most reliable test is to check the formula bar—if it shows the equals sign without a leading apostrophe, it’s a formula; if it shows an apostrophe or a space, it’s text.
What If the Formula Still Doesn’t Calculate?
After fixing the format, if the cell still shows text, try these steps:
- Check for hidden characters: Select the cell, then in the formula bar, place the cursor right after the equals sign. If there is a space or a non-breaking space, delete it.
- Use the
CLEANfunction to remove non-printable characters, but that requires you to re-enter the formula. A quicker trick: copy the cell, paste it into Notepad, then copy back—this strips formatting and hidden characters. - If the cell is part of a table, check that the column format is not set to Text. Select the column, go to Data > Text to Columns, choose “Delimited,” then “Finish.” This often converts text-formatted numbers to real numbers.
Frequently Asked Questions
Why does my formula show as text after I type it?
Most likely the cell was already formatted as Text before you typed. Excel doesn’t automatically convert a text-formatted cell to a formula. Change the format to General and re-enter the formula.
How do I force Excel to recalculate a text formula?
After changing the format to General, press F2 then Enter. For a range, use Find & Replace to replace = with =. This forces recalculation.
Can I use a formula in a cell that is formatted as Text?
No, not directly. The Text format overrides formula evaluation. You must change the format to General or Number first.
What does the apostrophe before a formula mean?
An apostrophe tells Excel to treat the entry as literal text. It’s often used to display numbers as text (like phone numbers). Remove it to make the formula work.
Why are all my formulas showing as text after opening a CSV file?
CSV files are plain text. When Excel opens them, it may interpret cells as text if the column contains mixed data. Use the Text Import Wizard and set the column data format to General.
Is there a way to automatically convert all text formulas at once?
Yes. Select the range, go to Data > Text to Columns, choose “Delimited,” uncheck all delimiters, and click Finish. This forces Excel to re-evaluate each cell as a formula.
Related
- Data Entry Operator Information & Job Facts
- JavaScript Get Random Number: Math.random() Explained
- Cool Shortcut Keys: 30+ Time-Savers for Windows
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Errors & fixes
- Excel Consolidate Missing? Find the Tool and FixesIf Excel’s Consolidate command seems to be missing, look on the desktop app’s Data tab, in the Data…
- Desktop 2 Shortcut: Create, Use, and Fix ItThe “Desktop 2 shortcut” usually refers to a shortcut that switches your Windows desktop to a second virtual…
- Excel Won’t Add a Page Break? Fix It in Print SetupIf Excel won’t add a page break, select the row below the intended horizontal break (or the column…
- Unable to Create Rules in Outlook? Find the Right FixIf Outlook won’t let you create a rule, first check that you’re using the right rule settings for…
- Excel IRR #NUM! Error: Causes and FixesIn Excel, IRR returns #NUM! when it cannot find a rate that makes a set of periodic cash…
- Ctrl+L Excel Shortcut: Create a Table and Fix IssuesIn Excel for Microsoft 365 on Windows, Ctrl+L opens the Create Table dialog for turning a selected data…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.