Why Excel Truncates Numbers Longer Than 15 Digits and How to Fix It
Question details
The user needs to prevent Excel from rounding or replacing significant digits with zeros when entering numeric values that contain more than 15 digits.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Entering or importing long numeric identifiers such as credit card numbers, tracking IDs, or account numbers into a spreadsheet.
- Observed behavior
- Excel automatically rounds numbers or replaces any digits past the 15th decimal place with zeros due to standard floating-point arithmetic limitations.
Determine whether your long numbers are meant for mathematical calculations or if they simply serve as identifiers, as this dictates the best approach to preserving your data.
Format Cells as Text Before Data Entry
By formatting the target cells as Text before typing or pasting your data, Excel will treat the numbers as characters, completely bypassing the 15-digit mathematical limit.
Excel stores numeric values using the IEEE 754 double-precision floating-point architecture, which natively supports only 15 significant digits of precision. For non-calculating long numbers like identifiers, account numbers, or credit card numbers, treating them as text is the standard and most effective solution.
Highlight the blank cells, rows, or columns where you plan to enter or paste the long numbers.
Go to the 'Home' tab on the ribbon, locate the Number format dropdown menu (which usually says 'General'), and select 'Text'.
Type or paste your numbers that are longer than 15 digits. Excel will now store them exactly as entered without rounding or truncating.

Use Arbitrary-Precision Software for Calculations
If you require high-precision calculations on numbers exceeding 15 significant digits, you must use specialized software instead of standard spreadsheet applications.
Handle Long Numbers Easily with WPS Spreadsheet
WPS Office offers a powerful, highly compatible spreadsheet environment. You can easily format your cells as text to safely store long IDs, credit card numbers, and tracking codes without losing a single digit.
- 1. Download and open WPS Office: Install WPS Office and launch the WPS Spreadsheet application.
- 2. Select your data range: Highlight the columns or cells where your long numeric identifiers will be inputted.
- 3. Apply Text formatting: Right-click the selected area, choose 'Format Cells', navigate to the 'Number' tab, and select 'Text'.
- 4. Input your data safely: Enter your 16+ digit numbers. WPS Spreadsheet will retain every digit perfectly, just like text.

Frequently Asked Questions
Why does Excel change the last digits of my 16-digit credit card number to zeros?
Excel uses a 15-digit precision limit for all standard numerical values based on floating-point arithmetic standards. Any digits entered beyond the 15th are automatically converted to zeros. Formatting the cell as Text before entering the number prevents this from happening.
Can I increase the 15-digit limit in Excel's settings?
No, the 15-digit limit is a fundamental architectural limitation based on the IEEE 754 standard for double-precision floating-point arithmetic. It is hardcoded into the software and cannot be modified in the settings menu.
How do I recover digits that were already converted to zero by Excel?
Unfortunately, once Excel truncates a long number and replaces the final digits with zeros, the original data is permanently lost in that cell. You will need to change the cell format to Text and then re-enter the original data.
Does WPS Spreadsheet also have this 15-digit limitation?
Yes, like most standard spreadsheet applications globally, WPS Spreadsheet uses the same IEEE 754 standard to ensure universal compatibility and fast processing. The best practice remains formatting the cells as Text for storing long numerical identifiers.




