Excel Formula Showing as Text Not Result? Fix It
In this article
Excel shows a formula as text instead of calculating it when the cell is formatted as Text, when the formula is preceded by an apostrophe or a space, or when Show Formulas is turned on. To fix it, set the cell format to General, remove any leading apostrophe or space, and turn off Show Formulas (Formulas tab > Show Formulas). Then re-enter the formula by pressing F2 and Enter. This guide walks through each cause and the exact steps to get your results back.
What You'll Need
- Excel for Windows, Mac, or the web (steps note where they differ)
- The workbook containing the formula that displays as text
- Basic ability to select cells and use the ribbon or menu bar
Step-by-Step
- Check if Show Formulas is on. Go to the Formulas tab and look at the Show Formulas button. If it is highlighted, click it once to turn it off. On Mac, the same button is on the Formulas tab. In Excel for the web, Show Formulas is under the Formulas tab as well. When this mode is on, every formula in the sheet displays as text, so this is the first thing to rule out.
- Inspect the cell for a leading apostrophe or space. Click the cell and look at the formula bar. If you see an apostrophe (') before the equals sign, or a space before it, Excel treats the entry as text. Delete the apostrophe or space. If the apostrophe is not visible in the formula bar, check the cell's alignment: text is left-aligned by default, while numbers and formula results are right-aligned. You can also press F2 to enter edit mode and look at the start of the line.
- Change the cell format to General. Select the cell or range, right-click, choose Format Cells, go to the Number tab, select General, and click OK. On Mac, use Format > Cells or the Format Cells dialog from the right-click menu. In Excel for the web, use the Home tab's Number Format dropdown and choose General. A cell formatted as Text will not calculate a formula even after you retype it.
- Re-enter the formula. After changing the format, the existing formula may still be stored as text. Press F2 to edit the cell, then press Enter. Or retype the formula from scratch. This forces Excel to parse the entry as a formula rather than a text string.
- Check for Calculation Options set to Manual. Go to Formulas > Calculation Options and make sure Automatic is selected. If Manual is chosen, formulas will not recalculate when you edit them, and the cell may appear to show old text or a stale value. Press F9 to recalculate the sheet after switching back to Automatic.
- Look for a hidden apostrophe from imported data. If you pasted or imported data, leading apostrophes are common. Select the column, use Data > Text to Columns, and finish the wizard with General format to strip the text markers. Alternatively, use Find & Replace (Ctrl+H) to replace the apostrophe with nothing, but be careful not to remove apostrophes that are part of real text.
- Verify the formula starts with an equals sign. A formula must begin with =. If you typed a plus sign or omitted the equals sign, Excel may store it as text. Edit the cell and add the equals sign at the very start.
- Check for a space before the equals sign. A leading space is easy to miss. Click the cell, look at the formula bar, and delete any space before the =. Then press Enter.
- Confirm the cell is not part of a merged cell or data table with text formatting. Merged cells can behave oddly. Unmerge if needed (Home > Merge & Center), then re-enter the formula. Also check that the cell is not formatted as Text via a cell style; apply the Normal style from the Home tab's Cell Styles gallery.
- Recalculate and test. Press F9 (or Ctrl+Alt+F9 for a full rebuild) to force calculation. If the formula now shows a result, save the workbook. If it still shows text, move to the troubleshooting section below.
Common Mistakes
- Changing the format to General but not re-entering the formula. The cell keeps the old text until you edit and confirm it.
- Leaving Show Formulas on and assuming the file is broken. It is a view toggle, not a calculation setting.
- Using Find & Replace to remove all apostrophes and accidentally deleting apostrophes in names or text entries.
- Formatting only the active cell instead of the whole range, so other cells still show text.
- Overlooking a leading space before the equals sign because it is invisible in the cell display.
Tips
- Press Ctrl+` (the grave accent key, usually below Esc) to toggle Show Formulas quickly on Windows. On Mac, the shortcut is also Ctrl+` in most layouts.
- Use the Status Bar to check selection: if a range of numbers shows Sum and Count, the cells are numeric; if not, they may be text.
- When importing CSV files, set the column format to General in the import wizard to avoid text-formatted formulas.
- Keep a habit of checking the Number Format box on the Home tab before typing formulas into a new sheet.
Troubleshooting
If the formula still shows as text after the steps above, try these checks in order:
- Copy and paste as values, then retype. Copy the cell, paste special as Values into a blank cell, then type the formula fresh. This removes any hidden formatting.
- Check for protected sheets. If the sheet is protected, some edits are blocked. Go to Review > Unprotect Sheet if you have the password. Note that unprotecting removes protection, so confirm with the file owner first.
- Open the file in Excel for the web or another device. If it calculates there, the issue is local to your Excel installation. Repair Office from the Control Panel (Windows) or reinstall if needed. On Mac, use the Excel Help menu's Check for Updates.
- Look for an apostrophe stored in a custom number format. Right-click the cell, Format Cells, and check the Custom category. A format beginning with an apostrophe can force text display. Switch to General.
- Test in a new blank workbook. If a simple =1+1 shows as text there too, the problem is application-level: reset Excel preferences or repair the installation. If it works in the new file, the original workbook has a formatting or corruption issue; try copying the data into a fresh workbook.
Frequently Asked Questions
Why does my formula show as text after I press Enter?
The cell is likely formatted as Text, or the entry begins with an apostrophe or space. Set the format to General and re-enter the formula.
How do I turn off Show Formulas?
Go to the Formulas tab and click Show Formulas to toggle it off. The keyboard shortcut Ctrl+` also toggles it on Windows and most Mac layouts.
Can I convert a whole column of text formulas to real formulas at once?
Yes. Select the column, set the format to General, then use Data > Text to Columns and click Finish. This re-parses each cell. Re-enter any formulas that still show as text.
Why does the formula bar show the formula but the cell shows text?
That usually means the cell format is Text or Show Formulas is on. Check both, then press F2 and Enter to recalculate.
Does this happen in Excel for the web?
Yes. The same causes apply. Use the Home tab's Number Format dropdown to set General, and the Formulas tab to toggle Show Formulas.
Will changing the format affect my other data?
Changing a cell to General can alter how dates or percentages display. Apply it only to the cells with the problem, and check the results afterward.