Reference Unique Values in Table

shaon814

New Member
Joined
Mar 23, 2017
Messages
10
Hi,

I'm trying to pull in the Employee Name based on a Manager's ID Number.

For example, if I type in 1234 - I want the table below to fill out with all of her direct reports. But with Index Match, it only pulls in the first result. Is there a way to pull in the new next result and keep going until there isn't a difference?

-Thanks!


<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 11.0px Calibri; min-height: 13.0px} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 11.0px Calibri; color: #ffffff } p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 11.0px Calibri; color: #ffffff ; min-height: 13.0px} p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 11.0px Calibri} table.t1 {border-collapse: collapse} td.td1 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #cbcbcb #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px} td.td2 {background-color: #000000 ; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #cbcbcb #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px} </style>














Data




















Manager Name
Manager ID
Employee Name
Employee ID














Ben
1458
John
1458
Manager ID


1234






Mollie
1234
Hussain
1468


Manager Name


Mollie






Mollie
1234
Kayla
1479














Mollie
1234
Anna
1369
Employee 1 - Name
1
Hussain








Sarah
1224
Clinton
1258
Employee 2 - Name
2
Hussain
















Employee 3 - Name
3
Hussain

















<tbody>
</tbody>
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed.
Excel Workbook
ABCDEFGHI
1Data
2ManagerManager IDEmployeeEmployee ID
3Ben1458John1458
4Manager ID1234Mollie1234Hussain1468
5Manager NameMollieMollie1234Kayla1479
6Mollie1234Anna1369
7Employee 1 - Name1HussainSarah1224Clinton1258
8Employee 2 - Name2Kayla
9Employee 3 - Name3Anna
10
Sheet
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,656
Members
449,114
Latest member
aides

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