How to Compare Two Versions of a Customer List and Find What Changed

How to Compare Two Versions of a Customer List and Find What Changed

Published by: Digital Campaign

Why comparing two exports is harder than it looks

Most teams compare lists more often than they realise. A CRM export before an import, a supplier's new price list, the finance and sales versions of the same accounts, a mailing list before a campaign. The question is always the same: what is new, what has gone and what has changed?

Doing it by eye or with spreadsheet formulas is slow and easy to get wrong. Rows move around, the same value is written in slightly different ways, and a record that appears twice can hide a real problem. A difference in capital letters looks like a change when it is not one, while a changed email address can slip past in a long sheet.

This guide works through a full comparison with DataResolve, a free tool in Digital Campaign Labs. It runs in your browser and reads your files on your device, so it is safe for customer, staff or financial data. The example uses the tool's own sample files, so you can follow along and see the same results.

A worked example: October and November customer lists

The example is two exports of the same small customer list. October has six customers, C001 to C006. November has seven rows. Between them they contain every kind of difference the tool reports.

  1. Load the example. Open DataResolve and select Use example data. File A is the original, customers-october.csv, with 6 rows. File B is the update, customers-november.csv, with 7 rows. Each file shows its columns, and Column details lists how many values are filled, distinct and unique in each one.
  2. Check the column matching. Both files have the same five columns: Customer ID, Name, Email, City and Plan. DataResolve pairs columns with the same name automatically, even when the spacing or capital letters differ. If your files use different names, such as Email and E-mail address, you pair them yourself here.
  3. Choose the key. The key is the column that identifies a record. DataResolve suggests Customer ID, because it is filled in and unique in File A. Every other column is compared. Leave the key as suggested.
  4. Leave the matching options as they are. By default, DataResolve ignores spaces at the start and end of values, ignores differences in capital letters and treats several spaces as one. These options only affect the comparison. They never change the values in your downloads.
  5. Compare the files. Select Compare files. The summary shows 2 changed records, 1 only in File A, 1 only in File B and 3 unchanged, plus 1 duplicate key in File B.
  6. Read the changed values. The Changed values list shows exactly what changed, with the row numbers you would see in a spreadsheet:
    • C002 Bob Shah: Email changed from bob@example.com to bob.shah@example.com.
    • C003 Cara Jones: Plan changed from Pro to Basic.
  7. Read the records found in only one file. C004 Dev Patel is in October but not November, so the list shows him under Only in File A. He may have left, or his ID may have changed. C007 Gita Rao is new in November, so she appears under Only in File B.
  8. Look at the duplicate. Under Duplicate keys, C007 appears twice in File B, on rows 7 and 8, once with gita@example.com and once with gita.rao@example.com. DataResolve compares the first and lists the rest so you can fix them. In a real export, a repeated ID like this is worth chasing before you import anything, because the system that produced it may be creating duplicates.
  9. See what the defaults ignored. Two other differences are in the files on purpose. Ann Lee's city is Leeds in October and leeds in November, and Eve Martin's city has extra spaces around York. Switch off Ignore differences in capital letters and compare again: changed records go up to 3, because Ann's city now counts. Switch it back on, then switch off Ignore spaces at the start and end of values, and Eve's city counts instead. This is how you decide which differences matter for your data.
  10. Resolve and export. With the options back at their defaults, choose to keep File B values for changed records and include records found in only one file. Download reconciled data (CSV) gives 7 records, each with a Status column: Unchanged, Changed, Only in File A or Only in File B. Download differences report (CSV) gives 5 lines: the two changes with their old and new values, the missing and new customers, and the duplicate key, each with its row numbers.

Notice one detail in the reconciled file. Ann Lee's city is written as leeds, because the file keeps File B's values exactly as they were. The matching options decided that Leeds and leeds are the same, but they did not rewrite your data.

Using it on your own files

DataResolve reads CSV files with commas, semicolons, tabs or pipes, Excel workbooks (.xlsx) and JSON files, and the two files can be different formats. Each file can be up to 25 MB, with up to 250,000 rows and 200 columns.

The choice that matters most is the key. A good key is filled in for every record and unique within each file. Customer, order and account numbers usually work well. Email addresses can work, but people change them, which shows up as one record only in File A and another only in File B. If no single column is unique, tick more than one: a first and last name together, or an account number and a branch code.

Use the number options when your data needs them. Ignore leading zeros makes 007 match 7, which helps when one system stores IDs as text and another as numbers. Compare numbers by value makes 1.50 match 1.5, which helps with prices.

If you compare the same kind of files every month, select Save these settings. The small file it downloads records your column pairs, key and options. Next month, load the new files, select Load saved settings, and compare straight away.

What you gain from comparing lists this way

The benefit is confidence in a decision you would otherwise make on trust, such as importing an update, paying an invoice or sending a campaign.

Marketing and CRM teams can check an export before importing it, and see exactly which contacts would be overwritten or added. A changed email address or a missing customer is a decision, and seeing it first means someone can make it.

Finance and operations teams can match records from two systems, such as billing and sales, and get a short list of accounts that exist in only one. That turns a day of manual checking into a review of a handful of rows.

Data and IT teams can prove that a migration or a clean-up changed only what it was meant to change. The differences report is a record they can attach to the change ticket.

Duplicate keys are often the most valuable finding. They point to a process that creates bad data, and fixing the source is cheaper than cleaning the same problem every month. Our article on why fragmented data is the real threat to autonomous systems explains why this matters even more once software acts on the data without a person checking it.

Because the files never leave your device, all of this works for data you would not paste into an online tool.

When it is not the right tool

  • Fuzzy matches. DataResolve matches records on exact key values, after the formatting options. It will not decide that Jon Smith and John Smith are the same person. If your lists have no shared ID, fix that first or use a tool built for fuzzy matching.
  • More than two files at once. Compare two files, download the reconciled result, then compare that with the next file.
  • Very large datasets. Above 25 MB or 250,000 rows a file, a database or a data pipeline is the better place to reconcile.
  • Ongoing synchronisation. It answers the question for two files today. Keeping two systems in step every day is a job for an integration.

If reconciling data is becoming a regular part of your week, our data and insights service helps teams fix the causes as well as the symptoms.

Try it on your own lists

Run the example first, so you know what each list means, then load two real exports. Open DataResolve, select Use example data, and see how a comparison you might have spent an afternoon on takes a minute.