Compare Two Lists With AI Instead of Row by Row
Watch the short version (0:18)
Finding what changed between two lists by reading them side by side is busywork. Ask AI for three tables: removed, added, changed. Then check with one formula.
On this page
Last month's supplier list, this month's export, and the question: what changed? By hand, that is two lists side by side and a finger moving down both. With AI it is one request for three short tables, and one formula to check the answer.
The task, by hand
You read row 1 on the left, find it on the right, move on. A supplier that was renamed looks like one that disappeared plus one that is new. One that really disappeared is easy to miss, because you are looking for what is there, not for what isn't.
The demo
Illustrative data, not real suppliers.
List A (last month) List B (this month)
S-104 Northwind Office Supplies S-104 Northwind Office Supplies
S-117 Bluefin Freight S-117 Bluefin Freight BV
S-121 Greenway Cleaning S-130 Harbor IT Services
S-130 Harbor IT Services S-142 Linden Catering
S-142 Linden Catering S-155 Polder Print
The request:
Compare list A and list B. Match rows on the ID in the first column.
Give me three tables: in A but not in B, in B but not in A, and in both
but with a different name. Show the ID and both names. Don't match on
names: if the ID differs, it is a different row.
What came back:
In A, not in B: S-121 Greenway Cleaning
In B, not in A: S-155 Polder Print
Same ID, new name: S-117 Bluefin Freight → Bluefin Freight BV
Three lines to act on. The last one is the one people miss: by name, Bluefin Freight looks removed and Bluefin Freight BV looks new.
The steps to copy
- Make sure both lists have an ID column (supplier number, employee number, invoice number). Names are not IDs.
- Paste both lists into the assistant, each under its own label.
- Paste the request. Change "ID" and "name" to your column names.
- Read the three tables. Each line is something to act on.
- Check with a formula. Put list A on a sheet named ListA and list B on another sheet, with the IDs in column A of both. Next to each row of list B,
=COUNTIF(ListA!A:A, A2)=0shows TRUE for every ID that is not in list A. Those should be exactly the rows in the second table.
When the list is long
For a few dozen rows, the answer is easy to check by eye. For hundreds of rows, change the request: "Write me the Excel formulas to find these three groups, and tell me where to put them." The assistant writes the formulas; Excel checks every row. Some tasks take one request. Some are a small process.
Before you trust it
- Spaces you can't see. "S-117 " with a trailing space is a different ID to a formula. If the formula and the assistant disagree, look there first.
- Missing rows in the answer. If the assistant's tables are shorter than the formula's result, trust the formula.
- Personal data. A list of employees or customers belongs in the assistant your company approves. With the names taken out, the IDs are still enough to find added and removed rows; only the renamed check needs the names.
If the list came out of a PDF, turn the PDF table into rows first. If several colleagues each sent their own version, merge the spreadsheets before you compare.
Frequently asked questions
(2)
How do I compare two lists in Excel without checking row by row?
Match the lists on an ID, not on names. For a short list, paste both into an AI assistant and ask for three tables: in the first list only, in the second list only, and in both but different. For a long list, ask the assistant for the formula instead, for example =COUNTIF(ListA!A:A, A2)=0 next to each row of the second list, which shows TRUE for every ID that is new.
Why does AI miss rows when comparing long lists?
Assistants read long pasted text less reliably than short text, and some shorten their answers. Up to a few dozen rows, the answer is easy to check. Beyond that, use the assistant to write the formula or the steps, and let Excel do the comparison on every row.