Why does my spreadsheet turn numbers into dates?
Quick answer
A spreadsheet may interpret an entry as a date based on its automatic data-format rules, rather than keeping the characters exactly as entered. This can also affect codes with leading zeros or long digit strings. For identifiers that must stay unchanged, import or store the column as text. When opening a CSV in Excel, use the import workflow, check the column formats in the preview, and verify the result before committing. [S1] [S2]
The question, the details, the next step.
A practical checklist
Decide whether each column is a quantity or an identifier.
Mark identifier columns as text during import or before entering values.
For CSVs in Excel, use an import workflow when column control matters.
Inspect the preview for date-like entries, leading zeros, and long digit strings.
Compare imported sample values with the original source before relying on them.
A few more useful answers
Should I make every column in the CSV text?
No. Use text for identifiers that must retain their exact characters, and a numeric type for values intended for arithmetic. Choose the type column by column.
Does changing a cell’s display format recover digits that were already changed?
The supplied guidance does not establish that. If an identifier appears to have changed, check it against the original source and re-import with that column set to text.
Will the same import steps look identical in every Excel version?
No exact menus are established here. Microsoft notes that relevant choices depend on the Excel version, so inspect the options and preview available in your version. [S2]
Sources
References used for this guide.
- [S1] Data import and analysis options in Excel support.microsoft.com · Checked
- [S2] Import or export text (.txt or .csv) files support.microsoft.com · Checked
