How to Stop Microsoft Excel from Automatically Formatting Numbers as Scientific Notation

The Large Number Annoyance

When you type a very long number into a Microsoft Excel spreadsheet—such as a 12-digit UPC barcode, a 16-digit credit card number, or a long tracking code—Excel will automatically convert your data into scientific notation. For example, if you type 123456789012, Excel will instantly change it to 1.23457E+11. Because Excel is fundamentally a math program, it uses scientific notation to save visual space on large calculations. However, if you are using Excel for data entry and inventory management, this auto-formatting completely destroys the readability of your barcodes and ID numbers.

How to Force Excel to Treat Numbers as Text

The only reliable way to stop Excel from mathematically compressing your long numbers is to explicitly tell the software that the column contains text characters, not mathematical values.

1. Open your Excel workbook.

2. Click the letter at the top of the column (e.g., “A” or “B”) to highlight the entire column where you plan to enter your long barcodes or tracking numbers.

3. Ensure you are on the Home tab of the top ribbon.

4. Look for the “Number” section in the middle of the ribbon. You will see a dropdown menu that currently says General.

5. Click the dropdown menu and scroll all the way down to the very bottom of the list.

6. Select Text.

7. Now, click into any cell in that column and type your 12-digit number. It will display perfectly, exactly as you typed it.

The Apostrophe Shortcut for Single Entries

If you only need to enter one long number and do not want to format an entire column, use the apostrophe trick. Before you type your long number, type a single apostrophe ( ). For example, type '123456789012 and press Enter. The apostrophe acts as a hidden command telling Excel, “Treat everything after this as pure text.” The number will remain intact, and the apostrophe itself will vanish from the cell’s visual display.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.