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>
 
What do you mean by

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

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,214,821
Messages
6,121,762
Members
449,048
Latest member
excelknuckles

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