Returning Multiple Matches based off of one lookup value

Lilfiger19

New Member
Joined
Feb 8, 2014
Messages
7
Hi Guys!

Can anyone tell me how to do the following?

I have a workbook with two sheets. The first sheet (Detail) provides all of the data and the second sheet (Lookup) houses a data validation list. I want to be able to return all matches based off of an associate name, once chosen from the drop-down list.

If I choose Employee A (Detail!$D3), and that employee has several records on the detail tab, I want it to automatically return all of those records below the drop down box. I have tried using MATCH, INDEX & VLOOKUP to no avail.

Lookup Sheet:

Associate Name:Joe Smith
NameEE IDStatusAccount NameAccount number
Rec 1
Rec 2
Rec 3
Rec 4
Rec 5

<tbody>
</tbody><colgroup><col><col><col span="5"></colgroup>


Detail Sheet

NameEE IDStatusAccount NameAccount number
Joe SmithQ062230OtherRIVERSIDE SENIOR LI20802252
Joe SmithQ052230OtherDAYS INN-ATHENS #0640804593
Jessica EnglishF652230Full CommissionMEALS ON WHEELS40798878
Todd WilliamsF652230Full CommissionCSL-WESTMINSTER ALF70942586

<tbody>
</tbody><colgroup><col><col><col><col><col></colgroup>
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
detail

Row\Col
A​
B​
C​
D​
E​
1​
Name EE ID Status Account Name Account number
2​
Joe Smith Q062230 Other RIVERSIDE SENIOR LI
20802252
3​
Joe Smith Q052230 Other DAYS INN-ATHENS #06
40804593
4​
Jessica English F652230 Full Commission MEALS ON WHEELS
40798878
5​
Todd Williams F652230 Full Commission CSL-WESTMINSTER ALF
70942586

lookup

Row\Col
A​
B​
C​
D​
E​
F​
1​
Associate Name: Joe Smith
2​
2
3​
idx Name EE ID Status Account Name Account number
4​
1​
Joe SmithQ062230OtherRIVERSIDE SENIOR LI
20802252​
5​
2​
Joe SmithQ052230OtherDAYS INN-ATHENS #06
40804593​
6​
7​

In B2 just enter:

=COUNTIFS(detail!A2:A5,B1)

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

=IF(ROWS($A$4:A4)<=$B$2,SMALL(IF(detail!$A$2:$A$5=$B$1,ROW(detail!$A$2:$A$5)-ROW(detail!$A$2)+1),ROWS($A$4:A4)),"")

In B4 just enter, copy across to F4, and down:

=IF($A4="","",INDEX(detail!$A$2:$E$5,$A4,MATCH(B$3,detail!$A$1:$E$1,0)))
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,382
Members
448,889
Latest member
TS_711

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