In Excel: format the target cells as Text before typing or importing, or prefix an entry with an apostrophe; for existing values, convert them back with Text to Columns, Power Query or a helper formula.
Select the destination column before entering the data.
Press Ctrl+1 and choose Text, or set the column type to Text during import.
Paste or type the values after the text format is active.
If conversion already happened, undo or re-import from the original source rather than guessing the lost code.
What this does
Excel auto-formats entries that look like dates, such as 1-2, MAR1 or 03/04, because it tries to infer a number format. That is helpful for real dates and painful for IDs, gene names, part numbers and codes. The fix is to tell Excel the column is text before the value arrives, not after Excel has already converted it. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. For “remove date auto formatting in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a workflow that saves repeating the same clicks every week useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
A product code 03/04 should stay 03/04, not become March 4. Select the input column, press Ctrl+1, choose Text, then paste or type the codes. If values have already changed, undo immediately or re-import the file with the column type set to Text in Power Query or the Text Import Wizard. Auto date formatting is a data-quality problem, not just an annoyance. Codes, IDs and labels must survive import exactly, or every downstream lookup and report can be wrong. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Here is the takeaway for “remove date auto formatting in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Changing the format after Excel has already converted the value, which does not restore the original text.
- Relying on leading zeros after a date conversion; the original code may already be lost.
- Importing CSV files by double-clicking them instead of using Data ▸ From Text/CSV with column types.
- Using apostrophes everywhere in a shared table instead of setting the column type once.
Frequently asked questions
Can I turn off all Excel auto date formatting?
Not globally for every workbook. The practical fix is to pre-format cells as Text or import through Power Query with explicit column types.
Why did my code turn into a date?
Excel recognized the pattern as a date and stored it as a serial date number. Format the column as Text before entering those codes.
Can I recover the original text after Excel changed it?
Only if the original pattern is still known or you can undo or re-import. Once Excel stores a serial date, some original text detail may be lost.
Other ways people ask this
People reach this page typing “how to remove date formatting in excel”, “auto filling dates in excel”, “excel disable auto date” and “how to add auto date in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.
Why do people search for this in so many different ways?
Because the same task has many names. “how to remove date formatting in excel”, “auto filling dates in excel”, “excel disable auto date” all point at the one operation explained on this page, which is why they all lead here.