You typed 3-4 or 1/2 and Excel showed 4-Mar or 2-Jan, or a CSV opened with unexpected dates. Excel has no switch that turns this off, so mark the entry as text before it lands in the cell: an apostrophe for one value, the Text format for a column you are about to fill, and an import (not a double-click) for CSV files. These steps cover Excel for Microsoft 365 and recent desktop versions on Windows.
What Excel sees when you type 3-4
Excel reads every entry as you press Enter and asks whether it looks like a number, a date, a time or text. Anything that matches a date pattern for your region becomes a date. Microsoft’s support page on stopping Excel from changing numbers to dates is blunt about it: there is no way to turn this off, only ways around it.
Two details explain most of the surprises:
- Your region sets the pattern. On a PC set to US month/day order, 6/30/2026 is a valid date but 30/6/2026 is not, so the second one stays as text. On a PC set to day/month order, the reverse happens. The same workbook can behave differently on two computers for this reason.
- A date is really a number. Excel stores dates as serial numbers, counting days from the start of 1900. If you type 3-4 during 2026, the cell holds 46085 and displays it as 4-Mar. That is why switching the cell to Text afterward shows 46085, not 3-4.
So the order matters. Once Excel has converted the entry, the characters you typed are gone, and every method below works by stepping in before that moment.
Typing just a few values
For a handful of entries, add one character in front. Microsoft lists three options, and each one suits a different kind of data.
| Type this | Cell shows | Stored as | Best for |
|---|---|---|---|
| ‘3-4 (apostrophe first) | 3-4 | Text | Scores, part numbers, sizes and anything you might look up later. The apostrophe stays hidden in the cell but shows in the formula bar. |
| A space, then 3-4 | 3-4 | Text, with the space kept | Quick one-off entries you will only read. Microsoft suggests the apostrophe instead if you plan to use MATCH or VLOOKUP, since those functions ignore the apostrophe but not the space. |
| 0 1/2 (zero, space, fraction) | 1/2 | The number 0.5 | Real fractions you want to add up. Excel applies a fraction format, and it may show a reduced fraction (0 8/12 can display as 2/3). |
A small green triangle may appear in the corner of a cell that holds a number stored as text. Click the cell, click the warning icon, and choose Ignore Error if the value is meant to be text.
Filling a whole column with codes or ranges
When a column will hold dozens of entries like 2-10 or 11/12, set the cells to Text first so you can type normally.
- Select the empty cells, or click the column letter to select the whole column.
- Press Ctrl + 1 to open Format Cells, or right-click the selection and choose Format Cells.
- On the Number tab, click Text in the Category list.
- Click OK, then type or paste your values.

A faster route is the Number Format box on the Home tab: open the list and pick Text. That is also the method Microsoft gives for Excel for the web. On a Mac, Command + 1 opens Format Cells. For more on that dialog, see formatting cells in Excel.
Pasting from a web page, email or another file
Pasted data goes through the same date check as typed data. Microsoft’s page on automatic data conversions lists copying and pasting from external sources among the moments when conversion happens. A normal paste may also carry the source formatting with it, which can override the Text format you set.
- Format the destination cells as Text, as above.
- Copy the data from the browser, email or document.
- Click the first destination cell and press Ctrl + Alt + V to open Paste Special.
- Choose Text (or Unicode Text) if offered, and click OK. If the dialog shows formula and value options instead, the copy came from another workbook; choose Values.
The choices in Paste Special depend on where the data came from, so check a few cells afterward.
Opening a CSV or text file
Double-clicking a .csv file is where most unwanted dates come from. Microsoft’s article on importing text and CSV files explains that Excel opens a .csv with its default data formats. To control a column, bring the file in another way.
Option 1: Get Data from Text/CSV
- In a blank workbook, go to Data and, in the Get & Transform Data group, click From Text/CSV.
- Pick the file and click Import.
- In the preview, click Transform Data to open Power Query.
- Click the header of each column that should stay as typed, open the data type menu, and choose Text. If asked, choose Replace current.
- Click Close & Load.
Option 2: Rename the file to .txt
Change the file extension from .csv to .txt, then open it from Excel with File > Open. Microsoft notes that this launches the Text Import Wizard. On step 3 of the Text Import Wizard, select the column in the Data preview and choose Text under Column data format before anything is converted.
Either way, keep the original file. It is the only copy that still holds the values exactly as they were written. If you often combine exported files, merging several CSV files into one before importing saves repeating these steps.
What Automatic Data Conversion can and cannot stop
In Excel for Microsoft 365 and Excel 2024, File > Options > Data has an Automatic Data Conversion section (on a Mac, Excel > Preferences > Edit). It is easy to assume this is the off switch. It is not, at least not for entries like 3-4 or 1/2. Its four options cover narrower cases:
- Remove leading zeros and convert to number: turn off to keep ZIP codes and IDs like 00123.
- Keep the first 15 digits of long numbers and display in scientific notation if required: turn off to keep card-length or tracking numbers intact.
- Convert digits surrounding the letter “E” into a number in scientific notation: turn off so a code like 1E5 stays as typed.
- Convert continuous letters and numbers to a date: turn off so codes like JAN1 or MAR10 stay text. Microsoft warns that versions with a space or punctuation, such as JAN 1 or JAN-1, may still become dates.
These options apply when you type, paste, open a .csv or .txt file, use Find and Replace, or run the Text to Columns wizard. Microsoft says they don’t directly affect data imported with Power Query. If your copy of Excel has no such section, it is an older version, and the methods above are the only route. For barcodes specifically, formatting UPC codes in Excel covers keeping long codes whole.
Values that already turned into dates
- Just happened? Press Ctrl + Z straight away to undo the entry, then format the cell as Text and type it again.
- A few cells? Format them as Text, then type the values again.
- A whole imported column? Delete it and import the original file again with one of the CSV options above.
- No original file? If every value followed the same pattern, a formula can rebuild the text. For entries that were typed like 3-4,
=TEXT(A2,"m-d")returns 3-4 from the date in A2. Check several results against what you know the data should say, because the formula cannot tell whether the original was 3-4 or 03-04.
Check the result
Click a cell and look at the formula bar. A text entry shows exactly what you typed (with the apostrophe if you used one), while a converted date shows a full date such as 3/4/2026. Text cells also align left unless you changed the alignment. If you test a lookup, run MATCH or VLOOKUP on one entry to confirm it finds the value.
When you do want a real date in a cell, the Date formats are the right tool, and setting a date and time in Excel covers the shortcuts.
Odd cases readers hit
Will Text-formatted cells break SUM or other math?
They can. Microsoft notes that numbers stored as text may not work in calculations, so a SUM over a Text column of quantities may not give the total you expect. Keep Text for labels and codes, and use the zero-and-space method or a normal number format for anything you calculate.
Why is Automatic Data Conversion missing from my Options?
Microsoft lists it only for Excel for Microsoft 365 and Excel 2024, on Windows and Mac. If you use an older version such as Excel 2021 or 2019 and don’t see the section, the apostrophe, Text format and import methods are the tools there.
Does Excel for the web need a different fix?
The apostrophe works the same way. For a column, use Home > Number Format > Text, which is the route Microsoft documents for the web version.
Why do codes like 1E5 turn into 1.00E+05?
Excel reads a number, the letter E and more digits as scientific notation. Start the entry with an apostrophe, or in Microsoft 365 and Excel 2024 turn off the “E” option under Automatic Data Conversion.
Next time a file is about to come in, set up the Text columns or the import first, and the dates will not appear in the first place.
Excel borrows other Windows number settings too, which is why Excel can show lakhs instead of millions on a PC set to Indian digit grouping.

Kermit Matthews runs Live2Tech from just outside Philadelphia. He is an IT specialist with over 20 years of experience, from a university help desk to small-business IT, IT management and his own consulting practice, and has written tech guides full time since 2020. Steps are checked against the current software on a real device or the maker’s official documentation. More about Kermit.