Excel Turned My Product Code 1E5 Into 100000 — It Was Never a Number

A supplier sent a price list, and one product code came back wrong. The code was 1E5 — a short code for a sage-green ribbon spool. After the file passed through a spreadsheet, the code read 100000. Nothing in the file said the code had changed. The row was still there, the price was still there, and the product was still the same spool. Only the code had quietly become a number, and a different product in the same list already had the code 100000.

Why a code turns into a number
A CSV file has no types. It is plain text — there is nothing in the file that says "this cell is a code, that cell is a price." So when a spreadsheet opens the file, it guesses the type of every cell from its shape. 1E5 has the shape of scientific notation: 1 × 10⁵. The code was a name a supplier made up; the spreadsheet sees the shape and calls it a number. That is the whole mechanism.
The shape is also why some codes survive. A hyphenated code like CT-104 is unmistakably not a number, so it is left alone. Only the codes shaped like numbers get rewritten — and once you save the file, the change is permanent, because the original text is gone from the file. There is no undo for a value that was overwritten and saved.
What it looks like in a real file
I tested this with a fictional supplier price list I made up — "Maple & Thread Supply Co.", 24 rows, four columns: product code, product, unit price, quantity. Eight of the codes look like scientific notation: 1E5, 2E7, 3E4, 9E1, 5E2, 7E3, 4E6, 6E8. Two more codes are plain numbers, 100000 and 500. The other fourteen are hyphenated codes like CT-104 and HB-2210. Tested 2026-11-13, and re-tested the same day after the checker tool was fixed (the first version of this post described the old behaviour — see below).
I opened that CSV in LibreOffice first, which produced exactly these values:
| Code as written | What the spreadsheet shows |
|---|---|
| 1E5 | 100000 |
| 2E7 | 20000000 |
| 3E4 | 30000 |
| 9E1 | 90 |
| 5E2 | 500 |
| 7E3 | 7000 |
| 4E6 | 4000000 |
| 6E8 | 600000000 |
The worst part isn't the new numbers — it's the collisions. My list already has a code 100000 (a cream ribbon spool, same product family as the sage spool coded 1E5) and a code 500 (a butter-yellow felt sheet, next to the dusty-pink sheet coded 5E2). After a spreadsheet opens the file, 1E5 and 100000 are both 100000, and 5E2 and 500 are both 500. Two different products now share one code, and nothing in the sheet says which row is which. Twenty-four distinct codes go in; twenty-two distinct values come out.

The fourteen hyphenated codes are untouched — CT-104 stays CT-104 — because they don't look like numbers. Only the codes shaped like numbers get rewritten.
Three habits that stop it
First, check a new supplier file before you open it in a spreadsheet. The safest moment to catch this is before the file is ever double-clicked. I ran my fictional list through a CSV checker that inspects every cell against the patterns spreadsheet apps misread — inspection runs in your browser, so the file is never sent to a server. It detected the encoding (UTF-8) and reported "Check complete" with 8 at-risk cells, all of them "May be interpreted as scientific notation" — rows 2 to 9, column 1, the eight codes in order: 1E5, 2E7, 3E4, 9E1, 5E2, 7E3, 4E6, 6E8. Each one carried the recovery status "Can be corrected" and a recommended output identical to the original. The summary also counts "Overlapping code groups 2" — the collisions, listed in their own section below the preview, with the rows each code came from: "Value shown in Excel 100000" with 1E5 · Row 2 and 100000 · Row 10, and "Value shown in Excel 500" with 5E2 · Row 6 and 500 · Row 11. So the clash is no longer yours to spot alone: the result screen shows exactly which two codes will become one value.
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.comThe checker I used is one way to do this check — the habit itself is the point. Any method that inspects the file before a spreadsheet guesses at it works, as long as it happens before the first open.
Second, when you do open a CSV in Excel, use the import wizard and set the code column to Text. That works, but you have to remember to do it every single time a supplier sends a file, and one double-click on the wrong day ruins that file. It is a habit, not a fix — which is why it sits second, not first. Importing into Google Sheets instead doesn't help either: with default settings, Sheets guesses types the same way.
Third, never save over the original file. Keep the supplier's CSV untouched, and work on a copy. If a code does get converted, the original still exists to go back to — and a checker can only protect a file that still has its original values. If you already opened the file, watched the codes turn into numbers, and saved it, the original codes are gone. No tool can bring back information that no longer exists.
The checker caught exactly the eight. It flagged all eight scientific-notation codes and nothing else: the plain-number codes 100000 and 500 were not flagged, and neither were the hyphenated codes. That is the right call per cell — 100000 and 500 are numbers already, so there is nothing for the checker to warn about in isolation. But this time the checker also names the collisions: a new "Overlapping codes" section says "Different codes that Excel turns into the same number can no longer be told apart. Saving the value-preserving XLSX keeps the originals as they are". (An earlier version of this post said the checker never mentioned the collisions — that was true before the fix, and it is fixed now.)

Then I exported the value-preserving XLSX — the checker's "Download value-preserving XLSX · Recommended" button, with the toast "Value-preserving XLSX saved." The downloaded file, supplier-price-list-text-values.xlsx (20,856 bytes), reopened with all 24 rows intact, and I checked every cell: all eight codes came back as text — 1E5, 2E7, 3E4, 9E1, 5E2, 7E3, 4E6, 6E8, exactly as written. The plain codes 100000 and 500 came back as text too, and so did every price and quantity — the export stores the whole sheet as text, not just the flagged cells.

If the file is already damaged
First, find out whether the original still exists. If the supplier's CSV is still in your inbox or downloads folder, check that file instead — the damaged copy can be thrown away. If only the damaged file exists, the converted values can't be restored from the file itself: a code saved as 100000 carries no trace of whether it was 1E5 or 100000 all along. Your options then are to ask the supplier to resend the list, or to compare the damaged sheet against another source (an invoice, an old printout, the supplier's catalogue) and fix the rows by hand. Putting an apostrophe in front of each code in the CSV also works as a patch, but you are editing the data to protect it, and the supplier's next file arrives unedited anyway.
A few limits worth knowing before you rely on any checker for this. It can't restore values that were already damaged — each flagged cell in my test carried the status "Can be corrected", and that is the verdict for values that still exist in the file, not a promise about values already lost. It takes CSV and XLSX only (no XLS files), rejects files over 10 MB or 50,000 rows, and inspects only the first sheet. The checker also offers a UTF-8 BOM CSV download, but that is for preventing garbled text — it does not guarantee leading zeros, dates, or long numbers stay preserved. Only the XLSX stores the values as strings. And a clean result means "no risk signals found", not "the data is correct" — the tool doesn't check for typos or wrong values.
This post is only about the short-code case. Long numbers losing their last digit, postal codes losing a leading zero, and dates like 3-4 turning into March 4 are different symptoms of the same guessing — they are covered in Why Excel Breaks Your CSV: Long Numbers, Leading Zeros and Dates.
Check before you send the file
Before a supplier list goes anywhere — to a shop, to a colleague, to a printer — open the original CSV in a plain text editor and look at the code column. If any code looks like a number with an E in it, check the file before a spreadsheet touches it, and keep the original untouched until the checked copy is safely saved. The five seconds that check takes is the difference between a code and a hundred thousand.
