Check a Spreadsheet Import Before the Identifiers Change
A small set of witness rows can catch lost leading zeros, changed dates, and misread separators before you build a report on the imported data.

In this article
A volunteer brings two lists to a meeting. One is an export from the room booking system, and the other is a spreadsheet listing the people who can open those rooms. The numbers look similar enough. When the lists are joined, a dozen rooms have no contacts. A closer look shows that “0074” in one list has become “74” in the other. Both rows still look plausible, which is how the problem made it all the way to the meeting.
The import of a plain text table is a decision about meaning. A comma might separate fields, or it might appear inside a quoted address. A code may consist entirely of digits and still be an identifier. A spreadsheet usually makes useful guesses for simple tables. When you need the imported sheet to match another source, spend a few minutes checking where those guesses will matter.
Identify the columns whose spelling matters
Before opening the data in a spreadsheet, name the columns by role. A balance is something you expect to add or compare. A room number, product key, telephone number, or postal code is often a label. The difference is practical. If adding two values makes no sense and the sender uses leading zeros, preserving the exact characters is usually the safer representation. Number signs, spaces, and other punctuation can be meaningful too.
Date fields need their own decision. “03/04” can mean March fourth or April third, depending on context. If it is part of a shelf code, neither interpretation applies. Ask the source what the field represents. Where you control the export, use an unambiguous form such as a year followed by month and day, with a convention documented for everyone who reads it. If the sender uses a local date format, record that format firmly enough to choose the correct import locale.
Treat empty fields as a separate case. An empty amount, the literal word “unknown,” and a recorded amount of zero may carry different meanings. Decide whether a blank is allowed and what should happen when you see it. A pivot table can produce impressive totals while silently excluding unexpected text. A good import makes the exceptional rows easy to identify before a calculation hides them.
Choose a few rows to keep in view
Open a copy of the source in a plain text editor that can display its encoding, where the file size allows it. Find a few useful examples: an identifier starting with zero, a long numeric identifier, a date that can be read two ways, a name with an accented character, and a record with a field that includes a comma. If a field contains a line break, choose one of those records too. A quoted multiline field can occupy several visible lines in the editor while belonging to one table row.
Write down the exact source values and their column names as a check. Use the smallest examples that represent the relevant cases. If you plan to show them to colleagues who do not need access to the underlying file, make a tiny synthetic file with invented values in the same shapes. A fixture containing code 0074 and a fictitious machine serial is enough to demonstrate the behavior without passing around a real export.
Keep a count reported by the exporting system if one is available. It gives you an independent reference for how many data records should arrive. Counting lines of a plain text file can mislead when quoted fields include internal newlines, and a header line may need to be excluded. Record which count you are comparing before declaring that the spreadsheet has lost a record.
Import deliberately
Use the spreadsheet program's text import function when you have one. It usually lets you inspect the separator and character encoding before accepting the result. Excel documents importing text data with the From Text/CSV command and setting specific columns to Text in Power Query. On supported editions it also offers controls for some automatic data conversions. The controls and their exact locations vary, so check the instructions for the application version you actually use.
Look at the preview across several rows. If a sentence shifts into a second column partway through the file, check the separator and how quotes are interpreted. If a person's name displays scrambled characters, revisit the encoding setting instead of correcting names by hand. If the first line contains column names, verify that the program used them as headers. If the export includes explanatory lines before the header, skip only the lines that are actually outside the table.
Set text columns before an automatic type change strips leading zeros or changes long codes. In a transform editor, check the order of the applied steps. If a preliminary step has already converted a code into a number, changing its type in a later step may simply turn the altered number back into text. Remove or replace the earlier conversion if appropriate and return to the source preview. When a wrong result has been saved over a file, the original export is the reliable place to recover the spelling.
Inspect why a number looks wrong
Scientific notation can be a display choice. It can also be a clue that the software treated an identifier as a number and lost significant digits. The difference matters. Widening a column or changing its display format might help you see a legitimate numeric value, but formatting cannot restore digits that were discarded during import. Excel's documentation describes its precision limit for numerical values, which is a reason to import long digit strings as text when their exact characters matter.
Try inspecting a witness value in the app's editing area rather than looking only at the rendered cell. Compare it with the source. A custom numeric format may display a fixed width with zeros, which can be useful for a known pattern inside one workbook. If code length varies or the workbook will be exported to another tool, a visual presentation rule alone is less dependable than preserving the field as literal text from the start.
Test one relationship after verifying the witness rows. Join or look up a code that you know should match, and confirm that a deliberately different code remains distinct. “0074” and “74” may be two valid identifiers in one system. If the exporting system documents them as equivalent, make the normalization an explicit transformation and verify it with sample rows. Then a colleague can understand why a match occurred rather than assume the rounding of a spreadsheet had meaning.
Also check a decimal value and a negative value from an amount column. A file can preserve exact identifiers yet interpret its amounts with the wrong decimal separator. Look at two or three raw values and confirm that the imported values support the arithmetic you expect. Check the unit as well. A value reported in cents does not become a value reported in dollars just because the column is formatted as currency.
Save an audit trail short enough to use again
Keep the source file you read and save the workbook under a different name. Write down the separator, encoding, interpreted date format, and names of the columns treated as text. Document any change you make on purpose, such as converting amounts from one currency representation or stripping padding that the source owner confirms has no meaning. Store only what you need, wherever the underlying data is authorized to live.
If you send the finished file onward, find out what the recipient expects. A workbook can carry sheet names and formulas that a text export cannot represent. A CSV supplies rows of text, and the recipient may still need to tell their import program which fields are identifiers. Share a compact field description when it helps. Open the exported file in a text viewer once, or reimport a copy using the intended workflow, and compare the witness rows again. Checking a workbook alone does not prove that the exported text preserved the same values.
If you repeat the import every week, keep the settings or query steps and compare them with the next source before refreshing. A new column or renamed header can be an ordinary upstream change. It can also cause a previously correct query to apply a rule to the wrong field. Look at the incoming headers and rerun two or three witness checks after each format change. This takes less time than finding out which weeks need to be repaired after a report has been distributed.
The next time a spreadsheet looks reassuringly complete, look first at the code with the leading zero and the date everybody reads differently. If those survived according to the source's rules, you have concrete evidence about the import. If they did not, nobody has to troubleshoot the resulting report yet. The smaller problem is still there in the original file, waiting to be fixed once at the point where it was introduced.
Product documentation
Microsoft documents leading zeros, long numeric strings, and automatic conversion settings. Refer to the instructions for your version before importing a file you cannot easily regenerate.


