logo
search
Formula Errors

How to Prevent Excel from Treating Text as Formulas

John WilsonJohn Wilson Oct 10, 2026 872 views

Question details

The user needs to prevent Excel from interpreting standard text and sentences as mathematical formulas.

How to Prevent Excel from Treating Text as Formulas
Product
Microsoft Excel
Device & OS
not provided
Scenario
Entering text sentences into cells, particularly when the text begins with a dash (-) or other mathematical symbols.
Observed behavior
Excel automatically interprets the leading character as an operator, evaluates the sentence as a formula, displays numbers or errors, and disables standard text formatting controls.
Before you start

Identify the cells where text is automatically converting into formulas; this typically happens when sentences begin with an equals sign (=), plus (+), or a minus/dash (-).

Solution 1Recommended

Prefix the Text with an Apostrophe

The most reliable and quickest method to force Excel to treat any entry strictly as text, bypassing all formula interpretations.

By placing a single quotation mark (apostrophe) at the very beginning of your cell entry, you signal to Excel that everything following it should be treated as plain text. This is particularly useful for bulleted lists using dashes.

1
Edit the cell

Double-click the cell you want to edit, or select it and click inside the formula bar at the top.

2
Type an apostrophe

Type a single apostrophe (') as the very first character in the cell.

3
Enter your text

Type your intended text or sentence immediately after the apostrophe, such as '- This is text'.

4
Press Enter

Press Enter on your keyboard. Excel will now display the text normally without attempting to calculate it as a formula.

Prefix the Text with an Apostrophe
Hidden Apostrophe: The apostrophe will not be visible in the spreadsheet view or when printed, though you will still see it when looking at the formula bar.
Free Excel Alternative

Easily Manage Text and Data with WPS Spreadsheet

WPS Spreadsheet provides a highly compatible and user-friendly interface to manage all your data. It perfectly handles text formatting and formula evasion using the exact same reliable methods as Microsoft Excel, but completely free.

  1. 1. Open your file in WPS: Launch WPS Spreadsheet and open your existing workbook.
  2. 2. Select formatting area: Highlight the cells where you need to input text starting with dashes or signs.
  3. 3. Apply Text formatting: Right-click, select 'Format Cells', choose the 'Text' category, and click OK to prevent formula conversion.
  4. 4. Use quick prefixes: Alternatively, just type an apostrophe (') before your text to instantly force text formatting on a cell-by-cell basis.
100% compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Familiar user interface with zero learning curve.Identical cell formatting rules: use the apostrophe trick effortlessly.Lightweight, fast, and free to use on Windows, Mac, and mobile devices.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel turn my text starting with a dash into a #NAME? error?

Excel interprets a leading dash (-) as a minus sign, assuming you are starting a mathematical subtraction formula. If the text following the dash isn't a recognizable formula or cell reference, Excel doesn't understand it and returns a #NAME? error.

Will the apostrophe show up when I print my spreadsheet?

No, the leading apostrophe used to format a cell as text is a hidden indicator. It will only appear in the formula bar when editing the cell, but it remains invisible in the standard worksheet view and on printed pages.

Can I remove the apostrophes later if I want to convert the text back to numbers?

Yes. If you need to convert text-formatted numbers back into actual numbers, you can highlight the cells, click the warning icon that appears next to them, and select 'Convert to Number'. Alternatively, you can use the 'Text to Columns' feature.