Why Excel Breaks Your CSV: Long Numbers, Leading Zeros and Dates

You export an order list from your shop and open the CSV in Excel. The tracking number now reads 1.23457E+15. The postal code 01234 has become 1234. A product code like 3-4 turned into a date. Nothing warned you, and nothing looks broken at first glance — the cells are full, the columns line up, the sheet looks ready to work with. The damage only shows up later, when a parcel goes to the wrong address or an invoice carries a number that ends in 0 and matches nothing in your system. And if you save the file now, those changes stay for good.

Why a plain-text file lets Excel rewrite it

A CSV carries no column types. It is just text separated by commas — there is nothing in the file that says "this column is an ID, keep it exactly as written." So when Excel opens it, Excel guesses. Anything that looks like a number gets stored as a number; anything that looks like a date gets stored as a date. The guessing is the whole problem, because the guess is silent and the file gives Excel nothing to argue with.

The guessing has hard edges. Excel stores numbers with at most 15 significant digits. A 16-digit order or card-style number loses its last digit, which becomes 0 — and Excel also shows long numbers in scientific notation, like 1.23E+15, so the number does not even look like itself anymore. A leading zero has no meaning to a number, so 01234 is read as the number 1234 and the zero disappears. Postal codes, phone numbers and member IDs are the usual victims. And a value such as 1-2 or 3/4 is read as a date — January 2, March 4 — even when it was a size code or a product variant. A file saved in one encoding and read as another, CP949 for Korean read as something else, turns the text itself into unreadable characters.

The first two are the dangerous ones, because the display change is only half of the problem. Once Excel has stored the value as a number, the lost digits are gone. Changing the cell format to Text afterwards does not bring them back — the original value no longer exists in the file.

What actually breaks, case by case

It helps to see the four kinds of damage separately, because each one needs a different habit to prevent it.

Long numbers. Anything over 15 significant digits is at risk. A tracking number that reads 1.23457E+15 on screen has already lost its final digit to a 0 underneath. The number is not just displayed differently; it is a different number now, and it will not match the courier's records.

Leading zeros. 01234 becomes 1234. The zero carried meaning — it was part of the code — and Excel threw it away because numbers do not keep leading zeros. The same thing eats the first digit of a phone number or a member ID.

Date-like codes. 1-2 and 3/4 look like dates to Excel, so they become January 2 and March 4. The code is gone, replaced by a calendar value that means nothing in your catalogue.

Encoding. If the file was saved in CP949 for Korean text and read as another encoding, the text turns into unreadable characters. This one is different from the other three: the values are still there in the file, just misread — but the result on screen is the same kind of useless.

All four share one property: the moment Excel opens the file is the moment the damage happens. Everything after that is recovery, not prevention.

The habits that keep values intact

The reliable order is: check first, then open. Before the file ever reaches Excel, run it through a check that flags the risky cells — leading zeros, numbers longer than 15 digits, date-like codes, encoding problems — and tells you which findings are fixable and which are not. The check produces an XLSX that stores the risky values as text, so Excel opens them unchanged. That is the habit that replaces all the others: the file is verified before Excel gets a chance to guess.

For the cases you handle by hand, the old methods still work with their known limits. The import wizard lets you set every column to Text before the file loads — reliable, but slow, and easy to forget for a single column. Typing an apostrophe in front of a value forces Excel to treat it as text, but only one cell at a time. Formatting a cell as Text after opening is the one that does not work at all: by then the value was already converted when the file opened, and the digits are already gone. Knowing which of these is too late matters more than knowing all of them — the apostrophe and the wizard both work because they act before the conversion, and the format change fails because it acts after it.

There is also a quicker check for the single most common case: if your problem is only long tracking numbers or member IDs, paste the column into a long-number checker and download an XLSX where the selected columns are stored as text. Same idea, smaller job.

Try the toolPrevent Excel Data Loss: CSV Value CheckCheck CSV and Excel data for values spreadsheet apps might change, then export an XLSX that preserves them.loopyti.com

When the file is already damaged

If a file was already opened and saved in Excel, the digits that were cut off are lost. No tool can guess them back — a 0 where a real digit used to be could have been anything, and inventing a digit would be worse than admitting it is gone. The only honest repair is to go back to the source: download the original file again from your shop admin, the courier site or the bank, and check it before opening it this time.

Then run the check once against the source for the values that matter most — a few long numbers compared with the original, especially before sending invoices or shipping labels. It takes less than a minute, and it is the difference between an order list you can trust and one where every long number quietly ends in 0.