Vlookup multiple matches

dwilson38550m

Board Regular
Joined
Nov 21, 2005
Messages
89
Hi,

Is there a formula I can use to pick up/return all matches when a Vlookup is used rather than just the first correct match. If I have data in column A and B, and 4 matches for the identifier on column A how can I capture all 4 matches?. Note the matches are email addresses....so column A is a customer account, column B is a listing of customer accounts.

I tried offset and match but I struggle to capture where there are 4,5,6 matches?
Thanks

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.
D1 houses an identifier of interest,

In D2 enter:

=COUNTIFS($A$2:$A$100,D$1)

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

=IF(ROWS(D$3:D3)>D$1,"",INDEX($B$2:$B$100,SMALL(IF($A$2:$A$100=D$1,ROW($B$2:$B$100)-ROW($B$2)+1),ROWS(D$3:D3))))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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