Lookup Data in Multiple Columns against lookup list?

FuriousD

New Member
Joined
Sep 1, 2016
Messages
35
Office Version
  1. 365
Platform
  1. MacOS
On Sheet 1 I have names of people in cells B2 through O2.

On Sheet 2 I have a lookup list of names.

On Sheet 1 cell P2 I'd like to do an If/index/match formula that looks ad B2-O2 to see if any of the names in my lookup list are in any of those cells. If they are it will return "Yes". Even if only one of the names in B2-O2 are present.

Example

Sheet 1
JKLMNOP
Mark MulderMagic JohnsonKirk GibsonSteve SmithAndre RisonZach RandolphNo
Charlie BellMateen CleavesAndre HutsonAntonio SmithMorris PetersonJason RichardsonYes

<tbody>
</tbody>


Sheet 2 - Lookup List
A
Morris Peterson
Matt Ishbia
Steve Cherry

<tbody>
</tbody>


So in the example above because Morris Peterson is in the lookup list on Sheet 2 cell P2 returns "Yes" because his name is in cell N2 on sheet 1.

TIA
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Thanks. I got an error so I changed one part (assuming you meant , $B2 not $B$ highlighted in red below) but now I get "Yes" for every result whether or not any of the lookup list names are in B2-O2.

Thoughts? Did I mess it up by changing?

In P2 of Sheet1 enter:

=IF(SUMPRODUCT(COUNTIFS(Sheet2!A:A,$B$:$O2)),"Yes","No")
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,215,700
Messages
6,126,285
Members
449,308
Latest member
VerifiedBleachersAttendee

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