Look Value in another column

silvertabb

Active Member
Joined
May 18, 2004
Messages
252
I have data in column A and B. In column C I need to enter a formula to help see whether or not data in Column B is repeated in Column A. Here is what I have in mind:

1) Is B1 contained in A1:A100 range?
2) If the answre is Yes the output should be YES otherwise it should generate NO
3) Reapeat 1 and 2 for the remaining entries in Column B

thanks,
Said

Would this work:

=if(iserror(vlookup(B1,A1:A100,1,F)),"Yes","NO")
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try:
Code:
=IF(ISNUMBER(MATCH(B1,$A$1:$A$100,0)),"Yes","No")
Drag down for rest of your values in the B column
 
Upvote 0
Hi silvertabb,

Put this formula ...

=IF(COUNTIF($A$1:$A$100,B1)>0,"Yes","No")

..in cell C1 and then copy down to cell C100

HTH

Robert
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

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