Prevent scientific notation in CSV identifiers
Verify the digits behind scientific notation and preserve exact long identifiers through a CSV export.
Import the long identifier column as text before the spreadsheet assigns it a numeric type, then compare the stored values and the raw CSV export against the original digit strings. In the WPS exercise, General conversion showed two distinct 16-digit identifiers in scientific notation and stored both as 9876543210987650, even after a plain number format expanded the display. Restart from the original file, choose Text for the identifier field, and verify that the final digits and the distinction between records survive the actual download.
What to look for
Use this guide when a long order reference or catalog identifier shows an E in the worksheet after CSV import. An exponent display can be a shortened way to show a number. It can also be the first sign that the application has stored an identifier numerically and discarded a digit. Look at the original CSV, the stored value in the worksheet and the saved output as separate checkpoints.
This matters especially when different records are distinguished by their last digits. A spreadsheet can display the same value for both, and a later comparison by identifier can then treat them as one match. Keep the original available until you have verified that the imported keys are still distinct.

Why it happens
Scientific notation describes how a numeric value is displayed. Long decimal identifiers need exact character storage when they serve as keys. If an importer assigns a numeric type with limited precision, the original text can map to a different number. Expanding that number may show the altered digits more clearly. Restoring the intended values requires bringing in the original strings.
Before you begin
Use long-id-input.csv, containing three data rows and two columns called id and item. Alpha has 9876543210987657 and Beta has 9876543210987659. Both strings have 16 digits and differ at the end. Control is the shorter 15-digit value 123456789012345. This gives you two records that should remain distinguishable and one shorter reference for the numeric branch.
Keep the original CSV in plain text and compare ids by item. The local test uses WPS Spreadsheets and explicitly runs a General conversion. This setup initially opened the raw CSV as text. The two important checks are what the observed numeric conversion actually stores and what the corrected CSV actually contains. Microsoft documents the treatment of long numeric values and a Text import for Excel. Excel guidance on large numbers
Steps
Capture the source strings before bringing them into a worksheet.
Open the practice file as plain text and write down the raw identifiers beside Alpha, Beta and Control. Check the digits all the way through the end. The first two keys differ only in the final digit. Preserve that distinction as the acceptance check for the delivery.
- For your own table, find records with long identifiers whose tail digits carry meaning.
- Check a representative group of IDs from the system that produced the file, using a trusted export or record lookup.
- Decide which fields should participate in arithmetic and which fields identify records.
- Apply exact text handling to the identifiers and preserve the other field types the receiving workflow actually needs.
Observe the numeric branch on a working copy.
In the WPS lab, the file first loaded with the literal identifier strings. We applied General to the id cells through the column conversion. The two long values then appeared in exponent form and were typed as numbers. Inspect your own import preview or a disposable test copy to see whether General or automatic detection does this in your release.
- Record what is displayed and what is stored.
- We captured the worksheet text and read the underlying values through the application interface.
- 87654E+15 and had the stored value 9876543210987650.
- Control’s stored value remained 123456789012345.
- The changed keys were now identical even though the original file still held two separate strings.
- Use the losing branch as evidence only and leave the original intact for the fix.
Expand the display to reveal what the worksheet has.
Widen the column and choose a plain integer display on the same numeric cells. In the test, both long identifiers now displayed 9876543210987650. Reading their stored numbers again gave that same value. The widened view made the loss visible, and the shorter control still matched its original digits in this run.
- Check the numeric branch’s CSV export as raw text. It contains the altered long values even though the displayed exponent no longer appears. This is why a visual change can look like a repair while the data required for matching is still wrong. Keep the numeric output away from downstream lookups when you know that the control comparison has failed.
Create the corrected load directly from the original text.
Start over from long-id-input.csv so the importer receives the source digits. In Excel’s Text Import Wizard, set the delimiter and set the id column to Text at the column format step before completing the import. In a query-based import, check whether an automatic type-conversion step has already acted on the column. Choose the Text interpretation from the original values and inspect the preview before loading.
- In the local WPS procedure, we opened the original and explicitly applied Text to the identifier cells. Reading them again showed the exact long strings, and the source keys remained distinct. Confirm that the last digit for Alpha is 7 and for Beta is 9. Verify the shorter control too so that a corrected import handles the whole column the same way. Excel Text Import Wizard
Save a fresh CSV and test the file outside the sheet.
Export the corrected table under a separate name. Use a text editor or exact CSV parser to inspect the resulting id fields. In long-id-text-roundtrip.csv, Alpha and Beta have their original strings and Control keeps its reference value. Compare by item and check that the two long keys still differ. The lab read the actual saved CSV fields for this check.
- Pass along the import requirement if another spreadsheet will open the deliverable.
- Exact bytes in the file are the first part of the verification.
- The receiving import should choose Text for the identifier column too.
- If the file will feed a lookup or a comparison, inspect a known pair before applying that procedure to the full table.
Check your result
Compare the original digits, the captured numeric display, the expanded numeric output and the corrected export. The table below pairs each source value with the observed scientific display and the saved raw identifier after each branch. The two distinct long strings both changed to 9876543210987650 in the numeric CSV. They remained separate in the text CSV. The local test checked all three records by their item labels.
For your own exports, compare the full strings and separately check for key collisions in a group of known distinct records. A simple count can remain unchanged even when two keys become equal. When a corrected file carries the intended values, retain the original and the reviewed copy so you can trace any later change to the import that caused it.
| Item | Source ID | Scientific display | Numeric CSV | Text CSV |
|---|---|---|---|---|
| Alpha | 9876543210987657 | 9.87654E+15 | 9876543210987650 | 9876543210987657 |
| Beta | 9876543210987659 | 9.87654E+15 | 9876543210987650 | 9876543210987659 |
| Control | 123456789012345 | 1.23457E+14 | 123456789012345 | 123456789012345 |
Common mistakes
Treating the E display as the only problem. Check whether the stored value still matches the original. Expand the display to inspect the value and compare the raw output as well.
Choosing Text after the altered value has been stored. Reopen the original and apply Text before numeric conversion. Check the exact characters in the new output.
Reviewing only one key. Use a pair that differs at the end and check both. The two long values in the exercise became equal in the numeric branch.
Comparing the corrected data through a new automatic numeric import. Open the actual CSV as raw text first. Use Text in any later spreadsheet verification if the identifiers need exact preservation.
Limitations
The recorded values come from the specified WPS build and the tested General conversion. Automatic import behavior varies by application and setting. Select Text for identifiers, check the stored and exported values, and review the receiving workflow before using the data to match records.
Test record
Tested on 2026-11-23 with WPS Spreadsheets 12.1.0.29161 under Windows PowerShell 5.1.22621.2428. Two distinct 16-digit strings became the same stored number. Plain integer display exposed the changed digits, and text conversion from the original preserved both keys.
The measurement record lists the local outputs and their SHA-256 digests.
Tested in
Questions
Does exponent display alone prove that a digit was lost?
Check the underlying value and the original string. In this exercise the expanded value and numeric CSV confirmed the change. A display can also shorten a number whose stored digits are intact.
Can I recover the original final digit by expanding the column?
Use the original file or another trusted source. When multiple original identifiers map to the same stored number, the worksheet’s expanded display cannot tell which one belonged to the record.
Why did the shorter control survive the conversion?
Its actual numeric value in this test matched the original digits. That observation is useful as a control. For identifiers that must be exact, use the same text rule across the column and verify each relevant output.
How do I check the receiver will match the correct records?
Have the receiver import as text, then compare a pair of known distinct long identifiers and their associated records. Confirm the downloaded file and the actual import both retain the exact strings.