How to Stop Long Numbers from Changing When Exporting PDF to Excel
Question details
Long numeric identifiers lose their final digits or round off after exporting a PDF document to Microsoft Excel.

- Product
- Excel, PDF
- Device & OS
- not provided
- Scenario
- Exporting or copying data containing long numeric identifiers (like credit card numbers or tracking IDs) from a PDF file into an Excel spreadsheet.
- Observed behavior
- The long numbers exceed Excel's 15-digit numeric precision limit, causing the final digits to be automatically changed to zeros or rounded off. Excel cannot store these values accurately as numbers.
Before proceeding, check your original PDF to ensure the numbers are displayed correctly there. If the digits are already rounded in the PDF, you will need to obtain the original source file.
Import PDF Data and Format Long Identifiers as Text
Prevent Excel from treating long strings as numbers by explicitly setting their format to Text during the data import process.
Excel has a maximum precision limit of 15 significant digits. Any number exceeding this length (such as a 16-digit credit card number) will automatically have its remaining digits converted to zeros. To preserve data integrity, these identifiers must be handled as text strings rather than numeric values.
Open Excel, go to the 'Data' tab on the ribbon, and select 'From Text/CSV' or use the 'Get Data' drop-down to import the file generated from your PDF.
Locate and select the text or CSV file that contains the data exported from your PDF.
In the preview window or Power Query Editor, highlight the column containing the long numbers. Change the data type for that specific column from 'Whole Number' to 'Text'.
Click 'Close & Load' to import the data into your spreadsheet. The long numbers will now display accurately without rounding.

Copy and Paste Values as Text Manually
If automated export methods fail, manually copying the values and formatting the destination cells as text beforehand can bypass the precision limitation.
Convert PDF to Excel Accurately with WPS Office
WPS Office provides a highly accurate, built-in PDF to Excel converter that intelligently handles data types. It helps preserve text formatting and layout, preventing strict numeric rounding limits from destroying your long identifiers during automated conversion.
- 1. Open the PDF in WPS Office: Launch WPS Office and click on the 'PDF' tab to open your document containing the data.
- 2. Select PDF to Excel: Navigate to the 'Tools' menu at the top of the interface and click on the 'PDF to Excel' option.
- 3. Adjust Conversion Settings: In the conversion dialog box, select your desired page range and output location for the new spreadsheet.
- 4. Convert and Review: Click 'Convert'. Once finished, open the newly generated spreadsheet in WPS Spreadsheet to verify that your long numbers are preserved accurately.

Frequently Asked Questions
Why does Excel change the last digits of my 16-digit credit card number to zeros?
Excel follows the IEEE 754 specification for storing floating-point numbers, which limits numeric precision to 15 significant digits. Any digits typed or imported after the 15th digit are automatically converted to zero.
Can I recover the lost digits in Excel after they have been rounded?
No. Once Excel rounds the number and saves it as a numeric value, the original digits are permanently lost in that file. You must re-import the data or copy it as text from the original PDF to restore the correct numbers.
How do I force Excel to recognize a long number as text while typing manually?
You can type a single apostrophe (') before the number (for example, '1234567890123456). Excel will hide the apostrophe but treat the entire string as text, preventing it from rounding the final digits.




