Populating Manager IDs? Vlookup?

psimpsonuml

New Member
Joined
Oct 26, 2019
Messages
6
Hey all,

I've got this list of Employee ID - Employee Name - MGR ID - Manager Name. 1400 employees, ~400 managers.

I'm looking for a formula or function or feature - SOMETHING that will allow me to populate the Manager ID. I know VLOOKUP would work if it was a 1:1 relationship but as the dummy example I made below shows - There are 6 employees who share the same manager so I'm looking for a formula that takes "124" and populates it in C4-C9

IDNameMGR IDManager Name
123BubbaNone
124DooodyBubba
125Ho tepDooody
126ElvisDooody
127AlphaDooody
128AlfaDooody
129GammaDooody
130BoringDooody

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi,

In cell C4 ... you could test following formula

Code:
=INDEX($A$1:$A$9,MATCH(D4,$B$1:$B$9,0))

Hope this will help
 
Upvote 0
Hi,

In cell C4 ... you could test following formula

Code:
=INDEX($A$1:$A$9,MATCH(D4,$B$1:$B$9,0))

Hope this will help

So - this will populate D4 for everything in Column C, but I've got 400 rows to go through. Some people manage ~30 people, some manage 1.
 
Upvote 0

<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>
Sorry
I want C2 to Identify the two matching names in B and D column, and pull in the ID matching the name. See below

IDNameMGR IDManager Name
123James006128Alpha
124PSIMPSONUML129Gamma
125Ho tep124PSIMPSONUML
126Elvis124PSIMPSONUML
127Alpha124PSIMPSONUML
128Alfa123James006
129Gamma123James006
130Boring123James006

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
IDNameMGR IDManager Name
123James006128or127?Alpha
124PSIMPSONUML129Gamma
125Ho tep124PSIMPSONUML

<tbody>
</tbody>
 
Last edited:
Upvote 0
So
the formula provided should work Ok
Code:
C2=IFERROR(INDEX($A$2:$A$9;MATCH(D2;$B$2:$B$9;0));"")
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,688
Members
449,117
Latest member
Aaagu

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