How to Stop Microsoft Excel from Automatically Reformatting Text to Scientific Notation

The Large Number Corruption

Microsoft Excel is programmed to assume that any long string of numbers is a mathematical value that needs to be calculated. If you type a very long number—specifically, anything over 11 digits—Excel will automatically reformat it into scientific notation (e.g., typing `123456789012` will automatically convert into `1.23457E+11`). While this is mathematically correct for complex equations, it is a catastrophic data corruption issue if you are entering credit card numbers, IMEI codes, long tracking numbers, or complex product identifiers. You do not want these identifiers calculated; you just want them displayed exactly as you typed them.

How to Force Excel to Treat Large Numbers as Text

The most foolproof way to stop Excel from analyzing and compressing your long numbers into scientific notation is to force the cell to accept the input as literal text.

1. Click on the cell where you intend to type your long number.

2. Before typing the number, type a single apostrophe ( ' ).

3. Immediately type your long number (e.g., '1234567890123456).

4. Press Enter.

The apostrophe is an invisible instruction to Excel that means “treat everything that follows as text, do not calculate it, and do not reformat it.” The apostrophe will disappear from view, and your long number will be displayed exactly as typed. A small green triangle may appear in the corner warning you that a number is stored as text, which is exactly what you want.

Pre-Formatting Columns for Bulk Entry

Typing an apostrophe before every single entry is annoying if you are entering hundreds of tracking numbers. It is much more efficient to pre-format the entire column before you begin typing.

1. Click the letter at the top of the column (e.g., Column C) to highlight the entire column.

2. Right-click anywhere in the highlighted column and select Format Cells.

3. In the Number tab, look at the “Category” list on the left.

4. Scroll down and click on Text.

5. Click OK.

Now, the entire column is locked into text mode. You can paste or type massive 20-digit numbers into any cell in that column, and Excel will never attempt to convert them into scientific notation.

Get the best tech tips delivered straight to your inbox.

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