How to Stop Microsoft Excel from Automatically Rounding Numbers

The Missing Decimals

When working with precise financial data, scientific measurements, or long identification numbers, Microsoft Excel has a habit of “helping” you by altering your data. If you type a number like 14.5678, Excel might instantly display it as 14.57. Or worse, if you type a very long string of numbers like a 16-digit credit card number (e.g., 1234567890123456), Excel might automatically convert it into scientific notation (1.23E+15) and permanently alter the last few digits to zeros. This automatic rounding behavior occurs because Excel, by default, applies a “General” number format that truncates display width to fit the cell.

How to Stop Rounding by Changing Cell Formatting

The most common reason your numbers appear rounded is that the cell is simply hiding the decimal points to save visual space. The precise data is still there, you just need to tell Excel to show it.

1. Select the cell, or highlight the entire column, containing the rounded numbers.

2. Right-click the selected area and choose Format Cells…

3. In the Format Cells window, ensure you are on the Number tab.

4. Under the “Category” list on the left, select Number.

5. Look at the Decimal places box on the right. By default, it is often set to 2.

6. Increase this number to exactly match the amount of decimal places you need (e.g., change it to 4 to display 14.5678 correctly).

7. Click OK. Excel will instantly expand the data to show its true precision.

How to Stop Excel from Destroying Long Numbers

If you are typing very long strings of numbers (like serial numbers, barcodes, or IDs that are over 15 digits long), Excel’s internal math engine will literally discard the digits at the end and replace them with zeros. This data loss is permanent. To prevent this, you must tell Excel to treat the number as plain text.

Method 1: Pre-format the cell as Text

1. Before you type the long number, select the blank cell.

2. Right-click it, select Format Cells…

3. Choose Text from the Category list and click OK.

4. Now type your long number. Excel will treat it exactly like a word and will not attempt to calculate or round it.

Method 2: Use an Apostrophe

If you are just entering data quickly, you can bypass formatting entirely. Type a single apostrophe ( ' ) into the cell immediately before your number (e.g., '1234567890123456).

The apostrophe acts as a hidden command telling Excel, “Do not touch this data.” The apostrophe will remain hidden in the spreadsheet view, but your long number will stay perfectly intact without rounding or converting to scientific notation.

Get the best tech tips delivered straight to your inbox.

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