Help Center

How to prevent Excel from converting your UPCs or GTINs into scientific notation

Sarah B
Sarah B
  • Updated
This article describes how to prevent Excel from automatically converting a UPC code to scientific notation and corrupting your product catalog.


By default, when you enter a number over 12 digits in an Excel spreadsheet, it auto-corrects the number to scientific notation for brevity. For example, "879860004073" is converted to "8.7986E+11". When Excel exports the value to a CSV or Text file, it will export what you see, not the actual 12-digit value. This can wreak havoc on the UPC codes in your product database.

You can use this technique for all types of unique product identifiers, known as Global Trade Item Numbers (GTINs).

Universal Product Code (UPC)
12 numeric digits
European Article Number (EAN)
Typically 13 numeric digits (can also be 8 or 14 numeric digits)
Japanese Article Number (JAN)
8 or 13 numeric digits
International Standard Book Number (ISBN)
ISBN-10: 10 numeric digits (last digit may be "X")
ISBN-13: 13 numeric digits and usually starts with 978 or 979


Change the column format to Number and set decimal places to 0

If you already have the file open, then you can change the format of the column without closing your file and reopening it. Use any of these methods to change the column format to number and then set decimal places to none. All of these steps achieve the same thing in Excel.

Use the Ribbon shortcuts

  1. Select the column by clicking on the column header
  2. Go to Home > Number group > Change Number Format to "Number"
  3. Then, use the shortcut button right below it to decrease decimal places to none



Using Format Cells pop-up

  1. Right-click column header, select Format Cells
  2. Choose Number and then set Decimal places to 0
  3. Click Ok



Use keyboard shortcuts

  1. Select column to be formatted
  2. Alt > H > N > type "Number"
  3. Alt > H > 9 (twice to decrease decimal places to none)


Open the file using the Excel Text Import Wizard

In our experience, this step is required to retain any leading zeros for your values.

To prevent this conversion from the beginning and to retain any leading zeros for your values, you can format the column as Text, and take some additional steps when opening a CSV file in Excel. Here are the instructions:

  1. When you open the CSV or TXT, tab or comma-delimited file, use the Excel Text Import Wizard. See the following article for instructions: Open tab-delimited TXT or CSV file in Excel or Open Office Calc
  2. Make sure to select the column type as Text for the UPC column.
  3. Once the file is open, select the column and format it as Text before you save it as CSV again.
  4. You can verify that UPC codes have not been corrupted by opening the file in Notepad or (our favorite) Notepad++.



Was this article helpful?

40 out of 192 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.