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

#### Geoff Taylor

##### Active Member
... 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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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.

I haven't been back to this board since I posted this question - I just wanted to say "Thanks"

Replies
18
Views
327
Replies
2
Views
137
Replies
6
Views
207
Replies
6
Views
74
Replies
4
Views
104

1,196,079
Messages
6,013,311
Members
441,760
Latest member
Sharina

### 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.

### Which adblocker are you using?

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

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