vlookup / match / or function

percyt

New Member
Joined
Feb 27, 2013
Messages
13
just a quick question , what is the best approach to the following

i have A1 aus A2 fra & A3 ger

now below in cells A8 to B12 i have
scottukr
johnaus
paulfra
timpol
philsco

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>


and in cells D8 to D12
scott
john
paul
tim
phil

<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>
</tbody>

In cells E8 to E12 i am looking at the best formula to return "y" if any of column B8:B12 match that of A1:A3

any suggestions? many thanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
just a quick question , what is the best approach to the following

i have A1 aus A2 fra & A3 ger

now below in cells A8 to B12 i have
scott
ukr
john
aus
paul
fra
tim
pol
phil
sco

<TBODY>
</TBODY>


and in cells D8 to D12
scott
john
paul
tim
phil

<TBODY>
</TBODY>

In cells E8 to E12 i am looking at the best formula to return "y" if any of column B8:B12 match that of A1:A3

any suggestions? many thanks

E8, control+shift+enter, not just enter, and copy down:

=ISNUMBER(MATCH(INDEX($B$8:$B$12,MATCH($D8,$A$8:$A$12,0)),$A$1:$A$3,0))+0

1 means "y", 0 means "n".
 

Forum statistics

Threads
1,137,302
Messages
5,680,710
Members
419,929
Latest member
Atlas Quinn

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
Top