If cell contains one of several employees, returns the corresponding manager's name

drewber

New Member
Joined
Sep 23, 2021
Messages
10
Office Version
  1. 365
Platform
  1. Windows
New to this forum. I am wanting to automate some data entry on an error report I complete daily.

I would be entering in one of several employee's names in F2 and I want that person's manager's name to appear in G2. So this would then be for each row: F3 different employee, G2 that employee's manager.
Therefore, anytime I enter "Jenny" in a row in column F, "Xavier" appears in next cell in column G, "Ed" would return "Yancy", and so on.
2021-09-23_9-46-18.png


Due to the nature of this report, there may be additions, deletions, changes to the employees/managers, so I would need to be able to add, subtract or change. George may quit. We might add Tammy as new employee under Xavier as manager. Ed may move to Zack's team, etc.

Thanks in advance!
 

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.
Welcome to MrExcel Message Board.
Where is your Index table for manger and Employee name. Please upload it by method I described at My Signature.( below of my post).
 
Upvote 0
New to this forum. I am wanting to automate some data entry on an error report I complete daily.

I would be entering in one of several employee's names in F2 and I want that person's manager's name to appear in G2. So this would then be for each row: F3 different employee, G2 that employee's manager.
Therefore, anytime I enter "Jenny" in a row in column F, "Xavier" appears in next cell in column G, "Ed" would return "Yancy", and so on.View attachment 47563

Due to the nature of this report, there may be additions, deletions, changes to the employees/managers, so I would need to be able to add, subtract or change. George may quit. We might add Tammy as new employee under Xavier as manager. Ed may move to Zack's team, etc.

Thanks in advance!

MINISHEET;
 
Upvote 0
Welcome to MrExcel Message Board.
Where is your Index table for manger and Employee name. Please upload it by method I described at My Signature.( below of my post).
Book1.xlsx
ABCDEFGHIJ
1Date Reported ReporterIssue ReportedReferenceCode #EmployeeManagerEmployeeManager
29/1/21AnneNot Transferredjac3AndyXavierAndyXavier
39/1/21MikeNot Transferredacr4GeorgeZackBettyZack
49/1/21AnneWrong transfergge5BettyZackCharlieQuincy
59/1/21IngridNot Transferredese7MarkYancyDaniZack
69/1/21AnneAcct Not managedewq3ParisYancyEdYancy
79/2/21Ingridnot set up correctlyahr2HelenaQuincyFrancesQuincy
89/2/21AlexisNot Transferredhjt6MarkYancyGeorgeZack
99/2/21AlexisNot Transferredoyy9AndyXavierHelenaQuincy
109/2/21AlexisNot Transferredrde4CharlieQuincyIshmaelXavier
119/2/21AlexisNot Transferrederr2ParisYancyJennyXavier
129/2/21Mike not verifiederr1FrancesQuincyKevinZack
139/2/21MikeNot verifiedpjg5IshmaelXavierLanaXavier
149/2/21LisaAcct not managedott3LanaXavierMarkYancy
159/3/21AnneNo Case yse8EdYancyNancyXavier
169/3/21AnneNot Transferredeew0NancyXavierOscarZack
179/3/21BrendaAcct Not managed aez7KevinZackParisYancy
189/3/21Ingridnot verifiedkes4DaniZack
199/3/21AnneNo CCRaqhe3JennyXavier
209/7/21SueNot requestedhjg2OscarZack
Main
 
Upvote 0
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGHIJ
1Date Reported ReporterIssue ReportedReferenceCode #EmployeeManagerEmployeeManager
201/09/2021AnneNot Transferredjac3AndyXavierAndyXavier
301/09/2021MikeNot Transferredacr4GeorgeZackBettyZack
401/09/2021AnneWrong transfergge5BettyZackCharlieQuincy
501/09/2021IngridNot Transferredese7MarkYancyDaniZack
601/09/2021AnneAcct Not managedewq3ParisYancyEdYancy
702/09/2021Ingridnot set up correctlyahr2HelenaQuincyFrancesQuincy
802/09/2021AlexisNot Transferredhjt6MarkYancyGeorgeZack
902/09/2021AlexisNot Transferredoyy9AndyXavierHelenaQuincy
1002/09/2021AlexisNot Transferredrde4CharlieQuincyIshmaelXavier
1102/09/2021AlexisNot Transferrederr2ParisYancyJennyXavier
1202/09/2021Mike not verifiederr1FrancesQuincyKevinZack
1302/09/2021MikeNot verifiedpjg5IshmaelXavierLanaXavier
1402/09/2021LisaAcct not managedott3LanaXavierMarkYancy
1503/09/2021AnneNo Case yse8EdYancyNancyXavier
1603/09/2021AnneNot Transferredeew0NancyXavierOscarZack
1703/09/2021BrendaAcct Not managed aez7KevinZackParisYancy
1803/09/2021Ingridnot verifiedkes4DaniZack
1903/09/2021AnneNo CCRaqhe3JennyXavier
2007/09/2021SueNot requestedhjg2OscarZack
21
22
Master
Cell Formulas
RangeFormula
J2:J17J2=INDEX($G$2:$G$200,MATCH(FILTER(I2:I200,I2:I200<>""),$F$2:$F$200,0))
Dynamic array formulas.
 
Upvote 0
You should be able to do this pretty easily using the VLOOKUIP function.
See here for an explanation and examples: How to use the Excel VLOOKUP function | Exceljet

So for your example, the formula in G2 would look like:
Excel Formula:
=VLOOKUP(F2,$I$2:$J$17,2,0)
and you can copy down for the rest of the rows.
 
Upvote 0
Solution
You should be able to do this pretty easily using the VLOOKUIP function.
See here for an explanation and examples: How to use the Excel VLOOKUP function | Exceljet

So for your example, the formula in G2 would look like:
Excel Formula:
=VLOOKUP(F2,$I$2:$J$17,2,0)
and you can copy down for the rest of the rows.
Thanks so much! Had to do some tweaks but got it to work. you rock!
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,017
Members
448,937
Latest member
BeerMan23

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