How to Prevent Excel from Treating Text as Formulas
Question details
The user needs to prevent Excel from interpreting standard text and sentences as mathematical 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.
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 (-).
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.
Double-click the cell you want to edit, or select it and click inside the formula bar at the top.
Type a single apostrophe (') as the very first character in the cell.
Type your intended text or sentence immediately after the apostrophe, such as '- This is text'.
Press Enter on your keyboard. Excel will now display the text normally without attempting to calculate it as a formula.

Format Cells as Text Before Typing
Best when you need to enter a large amount of text across multiple cells without typing an apostrophe every time.
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. Open your file in WPS: Launch WPS Spreadsheet and open your existing workbook.
- 2. Select formatting area: Highlight the cells where you need to input text starting with dashes or signs.
- 3. Apply Text formatting: Right-click, select 'Format Cells', choose the 'Text' category, and click OK to prevent formula conversion.
- 4. Use quick prefixes: Alternatively, just type an apostrophe (') before your text to instantly force text formatting on a cell-by-cell basis.

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.




