Formula Errors

Fix Excel Formula Displaying as Text Instead of Result

Phi Hung VoPhi Hung Vo Nov 3, 2026 870 views

Question details

The user needs to fix an issue where entered Excel formulas display as plain text rather than calculating the expected result.

Fix Excel Formula Displaying as Text Instead of Result
Product
Microsoft Excel
Device & OS
not provided
Scenario
Entering or editing calculation functions (such as WEEKDAY or DATE) in a spreadsheet.
Observed behavior
The cell displays the formula text instead of the calculated result, or remains entirely unchanged after pressing Enter. In Excel for the web, a red dotted border may also appear.
Before you start

Ensure that your formula strictly starts with an equal sign (=) and check the formula bar to verify there is no accidental space or apostrophe (') immediately before it.

Solution 1Recommended

Change Cell Formatting to General and Re-enter

This is the most effective solution when a cell was inadvertently formatted as 'Text' prior to entering the formula.

When a cell's format is set to Text, Excel treats any input strictly as alphanumeric characters, ignoring formula triggers like the equal sign. You must adjust the cell's format and force a recalculation.

1
Select the problematic cell

Click on the specific cell or highlight the range of cells where the formula text is currently displaying.

2
Update the number format

Navigate to the Home tab on the Excel ribbon. Locate the Number group, click the format drop-down menu (which likely says 'Text'), and select 'General' or 'Number'.

3
Trigger the calculation

Double-click the cell to enter edit mode, or click directly into the Formula Bar, and then press Enter. Excel will now evaluate and display the calculated result.

Change Cell Formatting to General and Re-enter
Calculation Restored: Once re-entered, formulas like =WEEKDAY(DATE(2021,1,1),1) will correctly output their numerical values instead of text strings.
Effortless Spreadsheet Management

Seamlessly Calculate and Format Formulas with WPS Spreadsheet

WPS Office provides a highly compatible spreadsheet tool that makes entering, calculating, and troubleshooting formulas incredibly intuitive. You can easily manage cell formats to prevent frustrating text-display errors.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open your existing .xlsx or .xls file.
  2. 2. Highlight affected cells: Select the cells where formulas are currently displaying as plain text.
  3. 3. Adjust the cell format: Right-click the selection, choose 'Format Cells', and select 'General' under the Number tab.
  4. 4. Calculate instantly: Double-click the cell and press Enter to instantly evaluate the formula.
Fully compatible with Microsoft Excel (.xlsx) formats and formulasIntuitive cell formatting options to easily switch between Text, General, and DateComprehensive library of built-in calculation functions including WEEKDAYFree, lightweight, and features a familiar user interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does my formula still show as text even after I change the format to General?

Changing the format to General only updates the cell's underlying properties; it does not retroactively change what is already typed. You must force Excel to recognize the new format by double-clicking the cell or clicking into the Formula Bar and pressing Enter.

What does a red dotted border mean around my cell in Excel for the web?

In Excel for the web, a red dotted border typically indicates a formula error, an unsupported feature constraint, or a formatting conflict, such as trying to execute calculation logic inside a text-formatted cell.

Can the 'Show Formulas' feature cause this issue?

Yes. If you have accidentally pressed the Ctrl + ` (grave accent) shortcut or enabled the 'Show Formulas' button on the Formulas tab, Excel will display all formulas on the sheet as text instead of their results. Press the shortcut again to toggle it off.

Why is there an apostrophe before my formula in the Formula Bar?

An apostrophe (') at the beginning of a cell's input explicitly tells Excel to treat the subsequent characters as plain text. Deleting the apostrophe from the Formula Bar will allow the formula to calculate normally.