How to Prevent Excel from Converting Text Entries into Dates
Question details
The user needs a way to stop Excel 365 from automatically changing date-like text entries into actual dates or numbers, allowing for individual cell control without turning off global formatting.

- Product
- Microsoft Excel 365
- Device & OS
- not provided
- Scenario
- Entering data that looks like a date (such as fractions, part numbers, or ID codes) but is intended to remain as raw text in the spreadsheet.
- Observed behavior
- Excel automatically converts the text into a date or number format upon pressing Enter, even if the column was previously formatted in certain ways.
Before entering your data, decide whether you need this text formatting applied to a single cell, an entire column, or just occasional entries. This will help you choose the most efficient method below.
Prefix the Entry with an Apostrophe
The quickest and most reliable way to force Excel to treat a single entry as text without having to navigate through formatting menus.
This method is ideal for one-off entries where a value like '10-4' or 'Mar-1' needs to be preserved exactly as typed. Excel recognizes the apostrophe as a command to treat everything following it as plain text.
Click on the specific cell where you want to enter your date-like text.
Type a single apostrophe (') on your keyboard before typing any numbers or letters.
Type your data immediately after the apostrophe (e.g., '10-4) and press Enter. The apostrophe will remain hidden in the cell view, but the entry will be treated strictly as text.

Pre-format Cells as Text Before Data Entry
Best for when you have an entire column or range of date-like text to input and do not want to type an apostrophe for every single entry.
Easily Prevent Automatic Date Conversions in WPS Office
WPS Spreadsheet provides a seamless, user-friendly environment for managing your data. You can easily control cell formatting to prevent unwanted automatic date conversions using the same simple methods available in Microsoft Excel.
- 1. Open your spreadsheet: Launch WPS Spreadsheet and open the file where you need to enter your text data.
- 2. Select the target cells: Highlight the column or specific cells intended for text data entry.
- 3. Change format to Text: Navigate to the Home tab, find the number format dropdown, and select 'Text' before typing your values.
- 4. Use the apostrophe trick: Alternatively, type an apostrophe (') before your entry in any standard cell to force text formatting instantly without using menus.

Frequently Asked Questions
Why does Excel automatically convert text to dates?
Excel is designed to anticipate user needs by automatically converting recognizable date and time formats into its internal serial date numbers. This significantly speeds up data entry for accounting and date-tracking, but it can be problematic for fractions, part numbers, or IDs that happen to share formatting with standard dates.
Can I turn off automatic date conversion globally in Excel?
Yes, in recent updates to Excel 365, you can turn this off globally. Go to File > Options > Data. Under the 'Automatic Data Conversion' section, uncheck the 'Convert text to date' option. Note that older versions of Excel may not have this specific global setting.
How do I fix entries that have already been converted to dates?
If Excel has already converted your text to a date, changing the format back to 'Text' will only yield a 5-digit serial number (e.g., 44197). You cannot reverse it through formatting alone. You must either undo the entry (Ctrl+Z), format the cell as Text, and retype the data, or use the apostrophe method to re-enter it.




