Everyday Tools

How to Compare Two Lists and Find What Is Missing

Find items only in list A, only in list B, in both, and duplicates: matching rules for case, spaces and accents, spreadsheet columns and a CSV export.

Saizul Amin
Saizul Amin5 Nov 2026 · 3 min read
How to Compare Two Lists and Find What Is Missing

Two lists that should match rarely do. The attendance sheet and the registration list, the stock count and the online catalogue, last month's customers and this month's, the people invited and the people who replied. The questions are always the same: what is missing from each side, what appears in both, and what was entered twice?

Spreadsheet formulas such as VLOOKUP or COUNTIF can answer this, but they take time to set up, break when a cell has an extra space, and need a new column for every question. A list comparison tool answers all of them at once.

Four answers from two lists

Think of each list as a set of unique items.

  • Only in A: items in the first list that the second list lacks. For a mailing list check, these are members who are not subscribed.
  • Only in B: items in the second list that the first list lacks.
  • In both: the overlap, also called the intersection.
  • Union: everything that appears in at least one list, each item once.

The tool also gives In one list only, which joins the two "only" results, and Duplicates, which shows items repeated inside each list.

When are two items the same?

This is where most comparisons go wrong. "[email protected]" and "[email protected] " look different to a computer because of the capital letters and the trailing space, but they are the same address. The Compare Two Lists tool lets you decide the rules:

  • Ignore upper and lower case.
  • Trim spaces at both ends.
  • Treat several spaces as one.
  • Ignore accents, so Zoë matches Zoe.
  • Ignore numbering and bullets copied from a document.
  • Ignore punctuation.

Pick the rules that fit the data. Email addresses and names usually need case and spaces ignored. Product codes may be case-sensitive, so leave that rule off.

Step by step

  1. Paste the first list into List A, or open a text, CSV or Excel file. If the file has several columns, choose the one to compare; the column heading can become the list name.
  2. Do the same for List B.
  3. Check the separator. New lines are the default, and a single line with commas or semicolons is detected automatically.
  4. Set the matching rules.
  5. Switch between the result tabs. The Venn diagram shows how many items fall into each part, and the similarity percentage tells you how close the lists are overall.
  6. Copy one result, download it as text, or export a CSV with a column for each result.

Useful patterns

Reconciling payments. Paste the invoice numbers from the accounting export as A and the numbers from the bank statement as B. Only in A are unpaid invoices; only in B are payments without a matching invoice.

Checking a class register. Students on the register but not on the exam list need a seat; names on the exam list but not on the register need checking.

Cleaning a mailing list. Put all contacts in A and the unsubscribed addresses in B. Only in A is the list you are allowed to send to.

Second rounds. The "Use as list A" button moves a result into list A so you can compare it against a third list without copying.

Watch out for invisible differences

If two items look identical but do not match, there is usually a hidden character: a non-breaking space from a web page, a tab, or a different apostrophe. Turning on the space and punctuation rules normally fixes it. For true spelling variants such as Jon and John, an exact comparison will not help; a fuzzy matching tool is the better choice.

Lists are compared in your browser and are not uploaded, which keeps customer data and student names private.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages