Formula for automatically entering manager names when a name is entered into a column

Sequential21

New Member
Joined
Mar 12, 2015
Messages
3
I'm working on a data entry spreadsheet.

Basically the process needs to be - Enter Worker's Name in the first column>Manager's name is automatically entered in the second column>Area manager's name is entered in the third

e.g. Joe Smith>David Jones>Mark Johnson

On a separate sheet I've got a list of the names of all of the workers (400 or so) with the managers (around 50) and area managers (10) in separate columns. I need a formula for this first sheet that automatically enters the manager and area manager's names in the adjacent columns when the worker's name is manually entered.

I've attempted using the IF and OR function with no success so far.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
vlookup is what you want - make a table with employee names in first column, managers in second call it mytable1

make another table with manager names in first column, area manager in second, call it mytable2

enter fred in A1
in B1 =vlookup(A1,mytable1,2)
in C1 =vlookup(B1,mytable2,2)

if needed add if(A1="","",vlookup............
 
Upvote 0
Thank you it seems to be half-working. It displays the name of one of the managers in the table but not the correct one that's directly next to the worker's name. Any idea why it isn't showing the correct one?
 
Upvote 0
area mgr
manageralansue
fredalancolinann
billcolin
tomcolin
davealan
sidcolin
mytable2
mytable1
enter a name
tomcolinann
colin
=VLOOKUP(D28,mytable1,2)
ann
=VLOOKUP(E28,mytable2,2)

<colgroup><col width="64" span="11" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,893
Members
449,194
Latest member
JayEggleton

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