Formula Errors

Fix an Excel Formula Displayed as Text in a Cell

Elise WilliamsElise Williams Nov 12, 2026 869 views

Question details

The user needs to make a formula that is displayed as plain text evaluate normally in Excel.

Fix an Excel Formula Displayed as Text in a Cell
Product
Microsoft Excel
Device & OS
not provided
Scenario
A formula such as SUBTOTAL or OFFSET has been entered in a worksheet cell and should return a result.
Observed behavior
The cell shows the formula characters instead of calculating the formula result.
Before you start

Confirm that the entry starts with an equals sign (=) and that the formula is intended to calculate in the current workbook. If you copied the formula from another source, check whether it uses commas or semicolons as argument separators.

Solution 1Recommended

Change the cell to General and re-enter the formula

Use this when one or more formula cells are formatted as Text, causing Excel to treat the formula as plain characters.

Changing a cell from Text to General does not automatically recalculate an existing text entry. Edit the cell and confirm it again after changing the number format.

1
Select the formula cell

Click the cell that displays the formula text, such as =SUBTOTAL(...) or =OFFSET(...).

2
Set the number format to General

On the Home tab, open the Number Format list and select General.

3
Re-enter the formula

Press F2 to edit the cell, then press Enter. Excel should evaluate the formula instead of displaying it as text.

Change the cell to General and re-enter the formula
Formula calculates normally: If the formula result appears after you press Enter, the Text cell format was the cause.
Work with formulas in WPS Spreadsheet

Display and Calculate Spreadsheet Formulas Correctly in WPS Spreadsheet

WPS Spreadsheet lets you correct cells that show formulas as text by changing the number format, editing the formula entry, and checking formula display settings. Its familiar spreadsheet workspace makes it easy to move Excel worksheets and continue working with formulas.

  1. 1. Open the workbook in WPS Spreadsheet: Launch WPS Office, choose Spreadsheets, and open the Excel .xlsx or .xls workbook containing the formula.
  2. 2. Change the cell format: Select the affected cell, go to Home, open the number format list, and choose General.
  3. 3. Edit and confirm the formula: Double-click the cell or press F2, remove any apostrophe before =, and press Enter to calculate the formula.
  4. 4. Check formula display mode: Open the Formulas tab and turn off Show Formulas if the sheet is displaying formulas instead of results.
Set formula cells to General and recalculate them with a quick edit.Use formula display controls to switch between formulas and calculated results.Open and edit Microsoft Excel .xlsx and .xls workbooks with format compatibility.Use a familiar ribbon-style spreadsheet interface for formula troubleshooting.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show =SUM(A1:A5) instead of the answer?

The cell is commonly formatted as Text, or the formula has a leading apostrophe. Set the cell to General on Home, press F2, remove any apostrophe, and press Enter.

Why are formulas visible in every cell of my Excel worksheet?

Show Formulas is likely enabled. Go to Formulas > Show Formulas to switch it off, or press Ctrl+`.

Do I need to type the formula again after changing Text to General?

Yes. After selecting General, press F2 and then Enter in the existing cell. This makes Excel interpret the current entry as a formula.

Should Excel formulas use commas or semicolons between arguments?

Use the separator required by your regional settings. If a comma-separated formula fails, replace the commas with semicolons and enter the formula again.

Can SUBTOTAL calculate only visible rows?

Yes. SUBTOTAL can ignore filtered-out rows when you use the appropriate function number, such as 103 for COUNTA. Ensure the formula is entered as a formula and not stored as text.