- Scientific notation can be a visual change; it compares the complete data with its source.
- Long identifiers should be preserved as text before undergoing numeric conversion.
- In Power Query, review the automatic detection and the "Type changed" step.
- Digits replaced by zeros must be retrieved from a source that preserves the original.
Si Excel changes the last digits to zeros When entering a long reference, the problem often lies in how the system interprets that data. When it's converted to a number, the system applies its precision limit and may alter part of the identifier. Changing the cell format afterward won't restore the original digits.
Before correcting it, it's important to distinguish this case from a similar one: that the cell displays a number with an "E", as 1,23E+12Scientific notation may simply be one way to present the value. The solution depends on whether the data remains unchanged or has already been modified.
Check if Excel has changed the digits or just their format

Select an affected cell and compare its content with the original source: the exported file, the management application, or the document it comes from. Don't just focus on how the number appears within the column.
If it's displayed in scientific notation, try expanding the column and applying the "Number without decimals" format when it's an integer. This allows you to see its full representation, but it doesn't increase the available precision.
- The digits match the original: The problem may be limited to the presentation.
- The last digits have been replaced by zeros: You need to retrieve the original entry and re-enter it as text.
- Leading zeros have disappeared: You must check the length required by that identifier before rebuilding them.
For testing, use a copy of the workbook and dummy references. This will allow you to verify the behavior without modifying the working records.
Why does Excel change numbers with more than 15 digits?
Excel works with a numerical precision of 15 significant digitsWhen entering an integer identifier that exceeds that length, subsequent digits may be replaced by zeros.
For example, a fictional reference like 1234567890123456 can become 1234567890123450For an identifier, that difference is enough to point to another record or to stop finding a match.
The solution is to store those codes as text. Order references, phone numbers, or accounts don't need to be converted into quantities to be sorted, searched, or stored in a table.
Applying Text formatting after the change does not reconstruct the data. If the cell already contains zeros where there were previously other digits, you must check the source again.
How to enter long identifiers without losing digits

To write new records, first prepare the destination cells:
- Select the column or range that will contain the identifiers.
- Open Cell formatting; on Windows you can use Ctrl + 1.
- Select the category Text and accepts.
- Enter the original codes and check a sample.
For a one-off manual entry, you can also write an apostrophe in front: '1234567890123456Excel will treat the content as text and will not display that prefix within the cell.
When copying from another workbook, also check the source. If the digits are already altered there, pasting them into a text column will retain the incorrect data. Additionally, pasting can transfer formatting: review the result before proceeding with the entire batch.
Disable automatic conversions if your version allows it
En Excel for Microsoft 365 and Excel 2024 There are controls for certain automatic conversions. On Windows, look for them in File > Options > Data, within the section corresponding to data conversions.
You can disable the conversion that preserves only the first 15 digits of long entries. This way, the affected entries remain as text. There are also controls for leading zeros and certain strings that Excel would interpret as scientific notation or dates.
These adjustments do not allow for more precise numerical calculations nor do they repair previous cells. They also don't replace the type settings in Power Query. If they don't appear in your version, use text columns and a controlled import.
Please note that date control does not cover all possible combinations. For references such as 3-10Preparing the column as text remains a useful precaution.
How to import a CSV file without Excel modifying the code

For an import that you need to control, use Data > From text/CSV instead of relying on directly opening the file.
- Select the original CSV and check the delimiter and encoding in the preview.
- If the type detection option appears, choose not to automatically detect them when starting from columns of text.
- Press Transform data to open Power Query.
- Check the Steps appliedIf there is a Changed Type step that converts identifiers to numbers, remove or modify it before that conversion.
- Assign the type Text to the code columns and the types appropriate to the quantities or dates.
- Check several complete references before selecting Close and load.
Order matters: adding a text conversion after a problematic numeric step can leave you with the text representation of an already altered value. Go back to the previous step and compare it with the CSV file.
If the original file already contains incorrect zeros, Power Query will also be unable to retrieve the digits. You will need a new export from the system that contains the correct information.
Leading zeros: when to use custom formatting or TEXT
For fixed-length codes, such as a five-position code, you can display the value 123 as 00123 using the custom format 00000. However, the cell value will remain numeric.
If you need to obtain a text string of that length, use an auxiliary column:
=TEXTO(A1;"00000")
With 123 in A1, the formula returns the text 00123This is only suitable if you know that the code must have five positions: it does not show how many zeros the original register had or reconstruct unknown final digits.
Before sending the file to another application, check the exported result. A visual format within the workbook is not enough to guarantee how the destination program will interpret the data.
What to do if the last digits have already been lost
Keep a copy of the affected workbook and locate a reliable source: the CSV file from before the incident, a backup, or a new export from the ERP or CRM system. If you need to check the contents of a CSV file, you can view it in a text editor without overwriting it.
Retrieve the records from that source and repeat the import with the identifiers as text. Pay particular attention to long codes, values starting with zero, and date-like references.
For recurring processes, maintain an import query with the defined types and document which columns are identifiers. Also, verify that no subsequent transformation converts them back to numbers. The check should cover everything from the source to the file that is ultimately received by the next system.
Index
- 1 Check if Excel has changed the digits or just their format
- 2 Why does Excel change numbers with more than 15 digits?
- 3 How to enter long identifiers without losing digits
- 4 Disable automatic conversions if your version allows it
- 5 How to import a CSV file without Excel modifying the code
- 6 Leading zeros: when to use custom formatting or TEXT
- 7 What to do if the last digits have already been lost