match, lookup

FROGGER24

Well-known Member
Joined
May 22, 2004
Messages
704
Office Version
  1. 2013
  2. 2010
Platform
  1. Windows
I need to compare range AW1:AW which contains a list of numbers This list will typically have less than 20 rows . I need to look in column B and find all of the matches and insert a "X" in column AV if there are matches
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try

=IF(ISERROR(VLOOKUP(AW1,B$1:B$20,1,FALSE)),"","X")

With B$20 changed to the last cell in column B to look at for a match, then fill down in AV as needed.

Hope this helps
 
Upvote 0
Column AW is the "masterlist" of 1-20 numbers. In column AV2 I need to put a "X in that row if column B matches any of the numbers listed in column AW. There can be several instances of the number in column B and all of them will need to have a X in column AV. the worksheet will be different lengths each month.
 
Upvote 0
Sorry, had your columns round the wrong way, thought you wanted AW compared to B

Haven't tested this one, but think this is what you need.

=IF(B2<>"",IF(ISERROR(VLOOKUP(B2,AW$1:AW$100,1,FALSE)),"","X"),"")

Jason

edit: added an extra check to ignore blanks so AW range can be made long enough to cover any extra entries without causing problems.
 
Last edited:
Upvote 0
That worked great, Thank you Very much for your help!
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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