Compare two columns of data

Copper Contributor

I am looking for a formula that produces the following please :)

If range of values in column B also appear within range of values in column A, column C = YES or NO

 

I know this is probably a very basic query and that the answer is out there i just cant work out how to word my question! Hopefully this makes sense.

 

eg;

ABC
12YES
28NO
39NO
43YES
57NO
2 Replies

Hi @nicole_l 

 

Please try below formula:

 

=IFERROR(IF(MATCH(B2,$A$2:$A$6,0)>0,"Yes","No"),"No")

 

Sample file is also attached for your reference.

 

Thanks

Tauqeer

 

@nicole_l 

 

Hi, assuming your table starts in cell A1, write this formula in Cell C2 and copy down:

 

=IF(COUNTIF(A:A;B2)=1;"YES";"NO")