MS Excel — Use #PowerQuery to Compare Two Lists

#TwinzTechTip #TwinzTalk

Don Tomoff
Let’s Excel
2 min readMar 24, 2019

--

Compare 2 Lists in Excel — MATCH, VLOOKUP, or Power Query?

A frequent task in business is to compare two lists of data.

Have a master customer, product, mailing list etc and need to compare it to another list to see what is missing and needs to be added? Typical scenarios…

Basic Power Query makes this easy!

Please don’t do this by hand. 😳

Common approaches include using Excel MATCH or VLOOKUP function (which generates errors which indicate items aren’t on one list).

However, power query makes those methods tedious by comparison!

Here are the steps to using Power Query:

1️⃣ Create a query from the MASTER list. “Connection Only” query.

2️⃣ Create a query from the comparison list. This is a “Connection Only” query as well.

3️⃣ Now, “compare” the 2 queries. This is done by MERGING the 2 queries and using an “Anti-join” relationship — so that just exceptions are listed.

Merge Two Queries to Generate Exception List — Right Anti-Join
Resulting Query is JUST Exceptions

4️⃣ Load it as a Table into Excel and you have your list! Want to see how this is done for real?

Power Query loaded as “Table” into Excel

Work through this approach once — and you won’t go back!

Interested in seeing the file — you can download it here.

About Don

“It’s time for different”

Connect with Don!

LinkedIn, Flipboard, Twitter, Snapchat

--

--

Don Tomoff
Let’s Excel

It’s time for DIFFERENT— On a mission to challenge the status quo to a more productive and effective end… #digital #Excel #data #analytics #genai #chatgpt