How to Prevent Excel from Rounding 16-Digit Numbers
Question details
The user needs to stop Excel from rounding 16-digit identifiers to 15 digits of precision when entering or importing data.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Entering or importing long numeric identifiers, such as credit card numbers or bank account IDs, into spreadsheets.
- Observed behavior
- Excel automatically rounds the 16th digit to zero because it only supports 15 digits of numeric precision.
Before entering large batches of long identifiers, identify the columns that will contain these values to pre-format them, ensuring original data isn't permanently rounded to zero during initial entry.
Format Cells as Text Before Data Entry
The most reliable way to keep all 16 digits intact is to format the target cells as Text before typing or pasting the numbers.
Excel is designed to calculate numbers up to 15 digits of precision. Any digit beyond the 15th is automatically converted to a zero. By treating the entry as text, Excel skips the numeric calculation limit and preserves your exact input.
Highlight the cells, range, or entire column where you plan to enter the 16-digit numbers.
Go to the "Home" tab on the ribbon menu. In the "Number" group, click on the format dropdown menu, which typically defaults to "General".
Scroll to the very bottom of the dropdown list and select "Text".
Type or paste your 16-digit numbers into the newly formatted cells. They will now be stored exactly as typed.

Prefix the Number with an Apostrophe
For quick, one-off entries, you can force Excel to recognize a number as text by adding an apostrophe at the beginning.
Disable Automatic Data Conversion
In recent versions of Excel, you can modify global settings to stop Excel from automatically converting long numbers into scientific notation or rounded numbers.
Easily Handle Long Numbers in WPS Spreadsheet
WPS Spreadsheet provides a user-friendly interface to quickly format cells as text, ensuring your long identifiers like credit card numbers or account IDs are never rounded or altered. It efficiently processes large datasets while maintaining strict formatting rules.
- 1. Open WPS Spreadsheet: Launch WPS Office, open your document in WPS Spreadsheet, and select your target column.
- 2. Access Format Cells: Right-click the selected area and choose "Format Cells", or simply press Ctrl+1 on your keyboard.
- 3. Set as Text: Under the "Number" tab, select "Text" from the Category list on the left, then click "OK".
- 4. Input Safely: Enter your 16-digit numbers. WPS Spreadsheet will now store them safely as text without modifying the final digits.

Frequently Asked Questions
Why does Excel change the last digit of my 16-digit number to zero?
Excel follows the IEEE 754 specification for floating-point calculations, which limits numeric precision to 15 significant digits. Any digits past the 15th are rounded down to zero to save memory and processing power.
Can I recover the rounded digits after Excel has already converted them to zeros?
Unfortunately, no. Once Excel rounds the 16th digit to a zero and the input is saved or applied, the original digit is permanently lost. You must format the cell as text and re-enter the original data.
Does saving my file as CSV prevent rounding issues?
A CSV file inherently stores data as plain text, but if you open the CSV directly by double-clicking it, Excel will automatically parse long numbers and round them again. You should use the "Get Data" or "Import" feature and specify the column as Text during the import process.
How do I fix this issue when importing data from another system?
Use the Power Query tool or Text Import Wizard. During the import steps, ensure you select the specific column containing the 16-digit numbers and change its Data Type from "General" or "Whole Number" to "Text" before loading the data into your sheet.




