Vlookup 2nd value

orzik

Board Regular
Joined
Jul 14, 2004
Messages
85
All,
This is my challenge:
I need to lookup not only first value but als 2nd, 3rd etc.
I searched the board for any clues but couldn't find what I need.

In below example I would like to lookup phone numbers that belong to JOHN (E1). Since he is listed 3 times 3 numbers will be returned. I can spice it up just need the hard work idea to start.
Thanks,
Book1.xls
ABCDEF
1NamePhoneLookupNameJohn
2John2221222vlookup1stvalue
3Ana3332212vlookup2ndvalue
4Tom4443213vlookup3rdvalue
5John2124vlookup4thvalue
6John2135vlookup5thvalue
7Ana313
8Ana555
Sheet1
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
IFERROR(INDEX($A$1:$A$8,SMALL(IF($A$1:$A$8=$E$1,ROW($A$1:$A$8)),ROW(1:1)),2),"")) CtrlShift,Enter

That's not robust... Try rather:

In F1 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($A$1:$A$8,SMALL(IF($A$1:$A$8=$E$1,ROW($A$1:$A$8)-ROW($A$1)+1),ROWS($F$1:F1))),"")
 
Upvote 0

Forum statistics

Threads
1,217,367
Messages
6,136,148
Members
449,994
Latest member
Rocky Mountain High

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