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

[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]ID[/TD]
[TD="width: 64"]Name[/TD]
[TD="width: 64"]MGR ID[/TD]
[TD="width: 64"]Manager Name[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]Bubba[/TD]
[TD][/TD]
[TD]None[/TD]
[/TR]
[TR]
[TD="align: right"]124[/TD]
[TD]Dooody[/TD]
[TD][/TD]
[TD]Bubba[/TD]
[/TR]
[TR]
[TD="align: right"]125[/TD]
[TD]Ho tep[/TD]
[TD][/TD]
[TD]Dooody[/TD]
[/TR]
[TR]
[TD="align: right"]126[/TD]
[TD]Elvis[/TD]
[TD][/TD]
[TD]Dooody[/TD]
[/TR]
[TR]
[TD="align: right"]127[/TD]
[TD]Alpha[/TD]
[TD][/TD]
[TD]Dooody[/TD]
[/TR]
[TR]
[TD="align: right"]128[/TD]
[TD]Alfa[/TD]
[TD][/TD]
[TD]Dooody[/TD]
[/TR]
[TR]
[TD="align: right"]129[/TD]
[TD]Gamma[/TD]
[TD][/TD]
[TD]Dooody[/TD]
[/TR]
[TR]
[TD="align: right"]130[/TD]
[TD]Boring[/TD]
[TD][/TD]
[TD]Dooody[/TD]
[/TR]
</tbody>[/TABLE]
 
What do you mean by

" seems to be causing an error " ....
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How about


Book1
ABCD
1IDNameMGR IDManager Name
2123James006127Alpha
3124PSIMPSONUMLNot foundBeta
4125Ho tep124PSIMPSONUML
5126Elvis124PSIMPSONUML
6127Alpha124PSIMPSONUML
7128Alfa123James006
8129Gamma123James006
9130Boring123James006
Lookup
Cell Formulas
RangeFormula
C2=IFERROR(INDEX($A$2:$A$500,MATCH(D2,$B$2:$B$500,0)),"Not found")
 
Upvote 0
This worked (aside from Employee Column having middle initials and manager column not having it). Thank you so much! All of the "Experts" I work told me it was impossible and that I had to manually do it.

Can you explain the logic in the formula for my future use?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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