Data Import & Export

How to Prevent Excel from Converting Text Entries into Dates

Camila MilosovichCamila Milosovich Oct 23, 2026 871 views

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.

How to Prevent Excel from Converting Text Entries into Dates
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 you start

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.

Solution 1Recommended

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.

1
Select the target cell

Click on the specific cell where you want to enter your date-like text.

2
Type an apostrophe

Type a single apostrophe (') on your keyboard before typing any numbers or letters.

3
Enter your data

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.

Prefix the Entry with an Apostrophe
Formulas: Cells formatted using the apostrophe method can still be referenced by text-based formulas, as the apostrophe is not treated as part of the visible text string.
Data Entry Solutions

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. 1. Open your spreadsheet: Launch WPS Spreadsheet and open the file where you need to enter your text data.
  2. 2. Select the target cells: Highlight the column or specific cells intended for text data entry.
  3. 3. Change format to Text: Navigate to the Home tab, find the number format dropdown, and select 'Text' before typing your values.
  4. 4. Use the apostrophe trick: Alternatively, type an apostrophe (') before your entry in any standard cell to force text formatting instantly without using menus.
Free and lightweight alternative for spreadsheet managementFully compatible with Microsoft Excel (.xlsx, .xls) file formatsPrecise control over text and number formatting to avoid data corruptionFamiliar ribbon interface requires no learning curve
QA img-9

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.