Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Formula Shows as Text? Fix the Cell and Settings

· 5 min read · Home Tech

In this article
  1. Why Excel displays a formula instead of calculating it
  2. Fix a formula in a single cell
  3. Check Show Formulas when many cells are affected
  4. Distinguish text formatting from other formula problems
  5. Prevent the problem when entering or pasting formulas
  6. Frequently Asked Questions

If an Excel formula appears in a cell as literal text—such as =SUM(A1:A3)—rather than returning a result, first check whether the cell is formatted as Text or the formula begins with an apostrophe or space. Change the cell format to General, then re-enter the formula; if formulas appear throughout the worksheet, turn off Show Formulas.

Why Excel displays a formula instead of calculating it

Excel normally evaluates an entry that begins with an equals sign. A cell showing the characters of a formula usually means Excel has been told to treat the entry as text, or the worksheet is displaying formulas instead of their results. These causes can look similar but need different fixes.

Cell formatting is a frequent culprit. If a cell is set to Text before you type or paste a formula, Excel stores the characters instead of interpreting them as a calculation. Changing the format afterward does not necessarily convert an existing text entry into a formula; the content must be entered again.

An apostrophe at the start also forces text. For example, '=A1+B1 is stored as text, and the apostrophe may not be visible in the cell. A leading space before the equals sign can have a similar effect. Another possibility is that Show Formulas is enabled, which displays formulas across the sheet while they remain formulas.

Fix a formula in a single cell

For a formula that is visibly printed in just one cell, use this sequence in Excel for Microsoft 365 on Windows:

  1. Select the affected cell and open the Home tab. In the Number group, open the number format menu and choose General.
  2. Click the formula bar or press F2 to edit the cell, then press Enter. You can also delete the entry and type or paste the formula again.
  3. Check that the formula starts with an equals sign and that there is no apostrophe or space before it.

For example, if A1 contains 4 and A2 contains 6, entering =A1+A2 in a General-formatted cell should display 10. If the cell was formatted as Text, selecting General and pressing Enter after editing prompts Excel to parse the entry as a formula.

To repair several cells, select the affected range, change its format to General, and use Find and Replace or edit each formula and confirm it. You can often select a cell and press F2, then Enter, to re-enter its contents. Avoid replacing characters across an entire workbook without checking the selection: a broad replacement can alter text, labels, or formulas that were already working.

Check Show Formulas when many cells are affected

If the worksheet shows formula text in many cells, check Show Formulas before changing individual cell formats. On Windows, press Ctrl+` (the grave accent key, usually near the upper-left corner of the keyboard), or select Formulas > Show Formulas. The same command toggles the display back to calculated results.

Show Formulas changes what the worksheet displays; it does not turn formulas into text. Column widths may expand while formula text is visible, so the sheet can look different after switching back. On Excel for Mac, the equivalent shortcut is Control+`; you can also use the Show Formulas command on the Formulas tab. Shortcut behavior can depend on the keyboard layout, so the ribbon command is a dependable alternative.

A useful clue is scope: if many formula cells show their formulas at once, Show Formulas is likely on. If only one or a few cells are affected, inspect those cells for Text format, a leading apostrophe, or a space.

Distinguish text formatting from other formula problems

Not every formula-related display issue means the formula is stored as text. Check what appears in the cell and the formula bar:

  • Formula characters are visible: Check Show Formulas, Text formatting, and leading characters.
  • A result such as 0 or an unexpected number appears: Excel may be calculating the formula, but the cell references, inputs, or calculation settings may need review.
  • An error such as #NAME? appears: Excel is attempting to calculate the entry. The function name, spelling, or referenced name may be invalid; this is different from a formula stored as text.
  • A date or number looks wrong: The value may be calculated correctly but displayed using an unsuitable number format. Change the format to General, Number, or an appropriate date format to inspect it.

Also check for a leading apostrophe in the formula bar and for pasted content that includes spaces or other characters before the equals sign. If the workbook uses manual calculation, formulas may not update when inputs change, but that setting generally causes stale results rather than displaying formula text. To recalculate, press F9 on Windows; on Mac, use Fn+F9 on keyboards where function keys control hardware features. Calculation options are under Formulas > Calculation Options.

Prevent the problem when entering or pasting formulas

Before filling a range with formulas, set its number format to General. When pasting from another application or importing data, inspect a sample cell: copied content may arrive as text, particularly if the destination range was already formatted as Text. Re-entering the affected formula is often the simplest correction.

For a formula that you intentionally want to show as text, a leading apostrophe is appropriate. For example, entering '=A1+A2 displays the expression rather than calculating it. This is useful for instructions or documentation, but it is not a fix for a formula that should produce a result.

Do not confuse formula display with the Formula Bar. The Formula Bar normally shows the selected cell’s formula even when the worksheet grid displays its calculated result. Seeing a formula there is expected; seeing it in the cell itself is what calls for the checks above.

Frequently Asked Questions

Why does Excel show the formula instead of the answer?
Most often, the cell is formatted as Text, the entry has a leading apostrophe or space, or Show Formulas is enabled. Check the worksheet-wide display setting first if many cells are affected.

How do I convert a text formula into a working formula?
Set the cell’s number format to General, edit the entry with F2, and press Enter. If needed, remove any leading apostrophe or space and enter the formula again.

Why does changing the cell to General not fix it?
Changing the format does not always re-interpret content already stored as text. Edit and confirm the formula, or clear the cell and type the formula again after setting the format.

Why are formulas showing in every cell?
Show Formulas is probably switched on. Toggle it off with Ctrl+` on Windows or use Formulas > Show Formulas. On Mac, use Control+` or the ribbon command.

Can I display a formula without calculating it?
Yes. Enter an apostrophe before the equals sign, such as '=A1+A2. Excel treats the entry as text, so it displays the expression instead of returning a calculation.