Match two columns against each other and find the missing or extra items

johnwetherby

New Member
Joined
Nov 14, 2023
Messages
3
Office Version
  1. 2021
Platform
  1. MacOS
Hi
I have two lists of names and wish to find which names from the first list don't appear in list two and vice versa. How can I do this?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Welcome to the MrExcel board!

Is this the sort of thing you mean?

23 11 15.xlsm
ABCDE
1List ANames Missing from List BList BNames Missing from List A
2Name 1Name 2Name 7Name 7
3Name 2Name 3Name 5Name 11
4Name 3Name 4Name 1
5Name 4Name 6Name 11
6Name 5
7Name 6
Missing
Cell Formulas
RangeFormula
B2:B5B2=FILTER(A2:A7,ISNA(MATCH(A2:A7,D:D,0)),"")
E2:E3E2=FILTER(D2:D5,ISNA(MATCH(D2:D5,A:A,0)),"")
Dynamic array formulas.
 
Upvote 1
Thats exactly what I mean! Is it case sensitive? What does the A:A and D:D part mean in the formulas? Thanks
 
Upvote 0
Also, what happens with duplicates (multiple of the same name in list A)? Ideally I'm hoping that if there are multiple entries of the same name in list A, there needs to be multiple in list B. Is there a way to achieve this?
 
Upvote 0
Is it case sensitive?
Try it. ;)

What does the A:A and D:D part mean in the formulas?
=FILTER(A2:A7,ISNA(MATCH(A2:A7,D:D,0)),"")
D:D simply means column D. So the formula says to look for the A2:A7 values in column and if no match (where #N/A would be returned by the MATCH function) then return the column A value as part of the results.
Similarly, A:A just means column A

Also, what happens with duplicates (multiple of the same name in list A)? Ideally I'm hoping that if there are multiple entries of the same name in list A, there needs to be multiple in list B. Is there a way to achieve this?
Could we have some sample data with the expected results manually filled in so that we can see just what results you want. With your version and operating system I don't think that you will be able to use XL2BB but you should be able to simply copy/paste from your worksheet into your post.
 
Upvote 0

Forum statistics

Threads
1,215,143
Messages
6,123,277
Members
449,093
Latest member
Vincent Khandagale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top