Compare two lists and only extract non-duplicated values from first list

LeonardH

New Member
Joined
Dec 21, 2013
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have two lists that each include lists of options. Column A includes all options available. Column B includes selected options. I would like to return in Column C all options in Column A that were not selected in Column B. I would prefer some sort of dynamic formula that would scrunch the returned values so as to eliminate any blank cells.

The current formula I've inherited is
Excel Formula:
=IF(IF(ISERROR(MATCH(A3,$B$3:$B$200,0)),"Unique","Duplicate")="Unique",$A3,"")

A sample table of the desired result is below:

A​
B​
C​
Complete OptionsSelected OptionsNon-Selected Options
AcaiAcaiBanana
BananaCupuacuCurrant
CurrantJamba
Cupuacu
Jamba

Thanks in advance!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Non Selected =UNIQUE(FILTER(FILTER(A2:A200,COUNTIF(B2:B200,A2:A200)=0),FILTER(A2:A200,COUNTIF(B2:B200,A2:A200)=0)<>0))
 
Upvote 0
Another option
Fluff.xlsm
ABC
1Complete OptionsSelected OptionsNon-Selected Options
2AcaiAcaiBanana
3BananaCupuacuCurrant
4CurrantJamba
5Cupuacu
6Jamba
Sheet6
Cell Formulas
RangeFormula
C2:C4C2=FILTER(A2:A100,(A2:A100<>"")*(ISNA(XMATCH(A2:A100,B2:B20))))
Dynamic array formulas.
 
Upvote 0
Solution
@Fluff quit showing me up with simpler ways ;). Perhaps a tweak to Fluff's in case of nothing. =FILTER(A2:A200,A2:A200<>"")*ISNA(XMATCH(A2:A200,B2:B200))),"None Found")
 
Last edited:
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

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