VLOOKUP only finds the first entry in a table...

Geoff Taylor

Active Member
Joined
Dec 11, 2006
Messages
257
... so how would I find the second entry?


I can do it with VBA but I'd like to be able to do it with formulas if possible.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Something like:

=INDEX($B$2:$B$100,SMALL(IF($A$2:$A$100="X",ROW($A$2:$A$100)-ROW($A$2)+1),ROWS($C$2:$C2)))

confirmed with CTRL+SHIFT+ENTER and copied down.

where your lookup value is "X", looking in A2:A100 and extracting from B2:B100.

Formula extracts each consecutive match until you get errors... which you can hide by wrapping IFERROR() around the formula first.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,521
Members
449,088
Latest member
RandomExceller01

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