Excel turns long CSV numbers into E+18: what you can save and what is gone

6 min read

A white desk calculator beside a printed spreadsheet on a desk

Open a CSV file that holds the order number 4301982756102931847 and Excel shows 4.3E+18. Excel keeps only 15 digits of any number, so the last four digits of that order number are gone the moment Excel reads the file. The CSV on your disk still has all 19, as long as you do not save over it.

The rest of this post explains which digits are lost and which are only hidden, and what to do after you have saved.

What Excel does to a long number

We opened a small file with three long numbers in Excel 2024 (Windows, US settings) and wrote down what each cell showed, what it held, and what “Save as CSV” wrote back into a new file.

In the CSV fileDigitsExcel showsThe cell holdsAfter Save as CSV
5901234123457 (a barcode)135.9E+1259012341234575.90123E+12
1234567890123456161.23E+151234567890123450 (15 digits kept)1.23457E+15
4301982756102931847 (an order number)194.3E+1843019827561029300004.30198E+18

The E+ form changes only how a number looks. The 13-digit barcode is held in full. Microsoft’s page on number formats says the General format uses scientific notation for numbers of 12 or more digits. Our tests agree, with one addition: at the default column width, Excel already showed a 10-digit number as 1.23E+09 and an 11-digit number as 1.23E+10. At a column width of 30, those two showed in full, and the 12-digit and 13-digit numbers still showed as 1.23457E+11 and 1.23457E+12. Giving the cell the number format 0 (no decimals) showed all 13 digits of the barcode, 5901234123457.

Excel really does keep only 15 digits. Microsoft lists the number precision of Excel as 15 digits in its specifications and limits (checked 29 November 2026). Its page on floating-point arithmetic says why: Excel stores numbers in a binary form defined by the IEEE 754 standard, which gives about 15 significant decimal digits. Microsoft’s page on keeping leading zeros and large numbers adds that for a number of 16 digits or more, the digits after the 15th are rounded down to zero. That is what we saw.

So a number with 15 digits or fewer survives inside Excel. A number with 16 digits or more does not: the 16-digit number lost its last digit, and the 19-digit order number lost its last four.

The damage that happens on save

The barcode shows the problem best. Inside Excel it is intact. When we saved the sheet as a CSV file, the barcode was written as 5.90123E+12. The file now holds six digits of a thirteen-digit code, and nobody can read the barcode back out of it.

That is how these numbers get damaged. Someone opens a CSV, edits one cell and saves, and everyone who uses the file after that gets the changed copy. If a long ID column matters, never save over the original.

If you already saved over the file

The digits beyond the fifteenth are gone from that copy. No setting brings them back. Changing the cell format only changes how the remaining digits are shown: we gave the order number the format 0 and Excel displayed 4301982756102930000, which looks complete and is not.

The only repair is a fresh export from the system the file came from. If the same file went to other people, tell them too, because they may have saved over it.

Open the original so the digits stay

This works only if you still have the original file, the one that was never saved from Excel. Close the workbook without saving first, so the file on disk stays as it is. Then pick one of these. The menu names are from Microsoft’s pages; we did not click through them for this post.

  1. Import the file with Power Query. Microsoft’s page on keeping leading zeros and large numbers gives these steps: on the Data tab choose From Text/CSV, pick the file, choose Edit in the preview, select the column, then Home, Transform, Data Type, Text. In the Change Column Type box choose Replace Current, then Close & Load.
  2. Use the older wizard. Microsoft’s page on importing text and CSV files says that renaming the file from .csv to .txt before you open it starts the Text Import Wizard, where a column can be set to Text.
  3. Switch the conversion off. Excel for Microsoft 365 and Excel 2024 have a setting for this. Microsoft’s page Set automatic data conversions puts it under File, Options, Data, Automatic Data Conversion, and one of its four options keeps the first 15 digits of long numbers and shows them in scientific notation. Microsoft says to choose the conversions you want to disable (Insider blog, 25 August 2024). The blog adds that when an enabled conversion is about to run on a .csv or .txt file, Excel can warn you and let you open the file once without converting. Microsoft’s pages also say the settings do not affect data imported with Power Query, so route 1 does not depend on them. We have not tried the setting, so test it on a copy.

See the column as text first

If you want to see what is really in the file before you decide anything, open it in the CSV viewer on this site. It reads the file as text, so a long ID stays a long ID, and it marks the common cases that Excel would change, with an example from your own file.

The CSV viewer showing a column marked "More than 15 digits" with the order number 4301982756102931847 unchanged

The tool marks the order number column “More than 15 digits” and shows what Excel would do to the first value. If you then choose “Download Excel file”, the marked columns are written into the Excel file as text, so all 19 digits are still there when Excel opens it.

Treat IDs as text

An ID is a name. If you would never add two of the values together, the column is text. Order numbers, tracking numbers, barcodes and account references belong in that group. When you build a file for someone else, see the checklist for sending a CSV. The same habit stops codes such as 10-12 from turning into dates, as described in why Excel turns text into dates.

How we tested

Excel 2024 (version 16.0, build 20625) on Windows 11 with US settings, on 24 and 29 November 2026, with made-up files. We did not test Excel for Mac, Microsoft 365, Excel on the web, Google Sheets or LibreOffice, and we did not click through the Microsoft menus above. How we test says more.

Sources

All checked on 29 November 2026.