Data Import & Export

How to Prevent Excel from Rounding 16-Digit Numbers

Maira MehtabMaira Mehtab Nov 10, 2026 869 views

Question details

The user needs to stop Excel from rounding 16-digit identifiers to 15 digits of precision when entering or importing data.

How to Prevent Excel from Rounding 16-Digit Numbers
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 you start

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.

Solution 1Recommended

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.

1
Select Target Cells

Highlight the cells, range, or entire column where you plan to enter the 16-digit numbers.

2
Open Number Format Options

Go to the "Home" tab on the ribbon menu. In the "Number" group, click on the format dropdown menu, which typically defaults to "General".

3
Select Text Format

Scroll to the very bottom of the dropdown list and select "Text".

4
Enter Your Data

Type or paste your 16-digit numbers into the newly formatted cells. They will now be stored exactly as typed.

Format Cells as Text Before Data Entry
Data Preserved: Your long numbers will now display exactly as entered without rounding to zero at the end. A small green triangle may appear indicating a number is stored as text, which is the correct behavior.
Manage Large Datasets with WPS Office

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. 1. Open WPS Spreadsheet: Launch WPS Office, open your document in WPS Spreadsheet, and select your target column.
  2. 2. Access Format Cells: Right-click the selected area and choose "Format Cells", or simply press Ctrl+1 on your keyboard.
  3. 3. Set as Text: Under the "Number" tab, select "Text" from the Category list on the left, then click "OK".
  4. 4. Input Safely: Enter your 16-digit numbers. WPS Spreadsheet will now store them safely as text without modifying the final digits.
Perfect compatibility with Microsoft Excel (.xlsx) and CSV formats.Quick and accessible cell formatting options to preserve long numeric strings.Lightweight application with smooth performance for large, data-heavy spreadsheets.Free to use with a familiar, easy-to-navigate ribbon interface.
microsoft office alternative - wps office

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.