Vlookup for Multiple Values

karwanbk

New Member
Joined
Jul 20, 2017
Messages
21
hello guys ,

i have problem with Vlookup
i have a sheet "board"
like this
B A
yes Jack
yes Ali
no Sara
yes Alex
no Martin
yes Tim

and in another sheet i have a list for only Yes
then i want list all the names with Yes in the "board" sheet
in next sheet want like

A
Jack
Ali
Alex
Tim

i used the VlookUp but it make repeat the names if i used like give me
A
Jack
Jack
... go on with jack -_-

and there is lot of rows in sheet "board"

thanks
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Re: how to use Vlookup for Multiple Values

B A
yes Jack
yes Ali
no Sara
yes Alex
no Martin
yes Tim

that's columns in sheet "board"
i want list all names in column B that have Yes in Column A
and used INDEX() doesn't work
 
Upvote 0
Re: how to use Vlookup for Multiple Values

something like...


Unknown[TABLE="class: grid, width: 350"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]yes[/TD]
[TD]Jack[/TD]
[TD="align: right"][/TD]
[TD]Jack[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]yes[/TD]
[TD]Ali[/TD]
[TD="align: right"][/TD]
[TD]Ali[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]no[/TD]
[TD]Sara[/TD]
[TD="align: right"][/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]yes[/TD]
[TD]Alex[/TD]
[TD="align: right"][/TD]
[TD]Tim[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]no[/TD]
[TD]Martin[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]yes[/TD]
[TD]Tim[/TD]
[TD="align: right"][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
board

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]D2[/TH]
[TD="align: left"]{=IFERROR(INDEX(board!$B$2:$B$7,SMALL(IF(board!$A$2:$A$7="yes",ROW(board!$A$2:$A$7)-ROW(board!$A$2)+1),ROWS($D$2:D2))),"")}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Re: how to use Vlookup for Multiple Values

working fine thanks :)

but not working like that
{=IFERROR(INDEX(board!$B$2:$B,SMALL(IF(board!$A$2:$A="yes",ROW(board!$A$2:$A)-ROW(board!$A$2)+1),ROWS($D$2:D2))),"")}

i made
$B$2:$B, $A$2:$A, $A$2:$A
cause i don't know number of them
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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