Compare multi columns in 2 sheets and return records that dont match, eliminate duplicates, and fltr

tommyk203

New Member
Joined
Nov 24, 2015
Messages
13
The Excluded sheet contains the dob, last name, and first name of people that should be excluded from the results

The submissions sheet contains the dob, last name and first name of people that should and should not be included in the results. The sheet also contains a submission date and code column.

The results sheet should contain the dob, last name, and first name of all people on the submissions sheet, that are not on the excluded sheet. When making the comparison, I only want to compare last name and date of birth.

I was able to get that working, however, I am ending up with some duplicates because there are legitimate duplicate rows in the submissions sheet that have the same last name and date of birth. I do not want to include the duplicate records in the results sheet.

Furthermore, I only want to include records from the submissions sheet that have a value of “abc” in the code field.

The sample sheet is here.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
How about
Excel Formula:
=UNIQUE(FILTER(Submissions!B2:D100,(COUNTIFS(Excluded!A2:A100,Submissions!B2:B100,Excluded!B2:B100,Submissions!C2:C100)=0)*(Submissions!E2:E100="abc")*(Submissions!B2:B100<>"")))
 
Upvote 0

Forum statistics

Threads
1,223,992
Messages
6,175,822
Members
452,672
Latest member
missbanana

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