Why Excel Formulas Show as Text and How to Fix It

Learn why Excel formulas display as text instead of results, how to tell a format problem from a calculation problem, and how to fix each cause.

You type a formula such as =SUM(B2:B10) into a cell, press Enter, and the formula itself stays on screen instead of a number. This is a common spreadsheet problem, and it usually has a simple cause. Excel formulas appearing as text are usually a formatting or import issue, not a broken formula.

This guide is for anyone who works with spreadsheets, including people who receive .xlsx files from others, import data from CSV files, or export tables from PDFs. You will learn how to tell whether the cell format is the cause, how to check for hidden characters, and how to fix a single cell or a whole column.

The core idea is that a spreadsheet only calculates a formula if the cell is set to hold a value rather than text. Once you know where the text setting came from, the fix is usually quick.

Why do formulas show as text instead of results? The short answer

In most cases, the cell is formatted as Text, or it was formatted that way before you entered the formula, so the spreadsheet stores your input as plain text instead of a calculation.

Your situationWhat to doWhy
You typed the formula into a cell formatted as TextChange the format to General, then re-enter the formulaExisting text entries keep their text status even after the format changes
A column came in from a CSV file or pasted textConvert the column to general or number format before writing formulasImport and paste tools often mark cells as text
The entry begins with an apostrophe or a spaceDelete the leading character and press Enter againA leading apostrophe tells the spreadsheet to treat the entry as text
Formulas show as formula text across the whole sheetTurn off formula view and check the settingFormula view displays formulas in every cell instead of results
Results are stale or wrong but are not shown as textCheck the calculation mode instead of the formatThis is a different problem with a different fix

Figure out which problem you have

Before changing anything, check which symptom you see. The table below helps you match what you see on screen with a likely cause.

SymptomLikely causeHow to confirm
The formula text sits in the cell with no resultCell format is set to TextOpen the cell format options. If it reads Text, that is the cause.
A formula works in a new cell but not in the old oneThe original cell's format is TextType =1+1 in a blank cell. If it shows 2, the problem is in the original cell.
Only columns you imported show formula textThe import marked those columns as textCheck whether the numbers are left-aligned. Text is left-aligned by default; numbers are usually right-aligned.
The formula bar shows a leading apostropheA leading apostrophe was typed or pastedClick the cell and look at the start of the formula bar.
Every formula shows its formula text, including ones that worked beforeFormula view is turned onCheck the spreadsheet's view settings for a formula display option.
The result does not update when inputs changeManual calculation mode, not textTrigger a recalculation. If the value updates, the issue is calculation settings, not formatting.

Fix it step by step

Work through these steps in order. The first ones are quick and resolve many cases.

  1. Turn off formula view if it is on. If every formula in the sheet shows as text, this setting is the likely cause. Switch the display back to results and check again.
  2. Remove a leading apostrophe or space. Click the cell, delete the first character, and press Enter. Do not leave a space before the equals sign.
  3. Change the cell format to General. Select the cell, open the number format options, and choose General. Changing the format alone does not recalculate the formula.
  4. Re-enter the formula. Click into the cell, press F2, then press Enter. This forces the spreadsheet to evaluate the formula under the new format.
  5. Fix a whole range at once. Select the full column or range, set the format to General, and then re-enter the formula in the first cell. Fill it down to the rest of the range.
  6. Convert imported data. For a column from a CSV or text file, use the spreadsheet's text-to-columns tool and accept the defaults so the values are converted. You can also re-import the file and set the column type to General or Number.
  7. Test with a simple formula. Type =1+1 into a blank cell. If it shows 2, your spreadsheet can calculate. If the original cells still show text, repeat steps 3 and 4 on the affected range.

If the source is a scanned PDF, check the data before you write formulas. OCR text can include stray characters or misread digits, so compare the cells against the original page and check important figures by hand.

Prevent it next time

A few habits stop this problem before it starts.

  • Set the format before you type. Format the columns that will hold formulas as General or Number before entering any data.
  • Avoid pasting text-formatted content into calculation columns. When you copy from a web page or another document, paste values into cells you plan to use in formulas, and check the first few rows.
  • Check import settings. When you bring in a CSV file, review the column types in the import step instead of accepting the default for every column.
  • Keep a working copy in .xlsx. CSV files do not store formulas or cell formats, so reopen the data in a spreadsheet file before adding calculations.
  • Check the first rows after an export. If you export a table from a PDF to Excel using the PDF editor in the OmniDoc desktop client, look at the first few rows for left-aligned numbers before building formulas on top of them.

❓ FAQ

1. Why does my formula still show as text after I change the format?

The cell already holds the entry as text, and changing the format does not recalculate it. Click into the cell, press F2, and then press Enter to re-enter the formula under the new format.

2. Is a formula that does not update the same problem?

No. A formula that is stale or does not update when inputs change usually points to manual calculation mode, not a text format. Check the calculation setting first, and only work on cell formats if the formula text itself is visible.

3. Why do my formulas show as text only in cells I pasted?

Pasted content often carries the source's text formatting, and the pasted cells may also contain leading spaces or apostrophes. Paste values into the cells, set the format to General, and then re-enter the formulas.

4. Can I fix a large column without editing each cell?

Yes. Select the whole column, set the format to General, and re-enter the formula in the first cell. Then fill it down. Check a few results against your expected values before you rely on the column.

📝 Summary

Excel formulas appearing as text usually come from a cell format set to Text, a leading apostrophe, or imported data marked as text. Check which symptom you have, change the format, and re-enter the formula. If formulas still do not calculate, check formula view and calculation settings before you change anything else.

Open OmniDoc to work on your spreadsheets

Updated 2026-11-04