Find people responsible for employees withing a hierachic structure in a company.

Son

Active Member
Joined
Mar 19, 2010
Messages
284
Hello, I need to automatically find the managers who will be responsible for each employee in a company. There are many hierarchy levels and each manager is responsible for his team of subordinates.

I have all the columns A - K and I need to fill in columns L-M-N with the names (or job title) of the people corresponding to each person, as in the following example.

I have no idea how to approach this. Data in columns A-K is from a pivot table based on the employees' database.

I have classified each person according to a hierarchy level.
For example CEO = level 1, Director = Level 2, Subdirector = level 3, managers = level 5. People in level 4, or levels 6, 7 and 8 are not responsible for any subordinates.

So, in column A I have all hierarchy levels and in columns B-K I have the hierachy level for each person.

Each SubDirector is only responsible for the people that work for him, the same goes for each manager etc.

I don't know if this makes any sense to you, but if it does, I would be really greatful for any suggestion you might have.

I'm looking forward to any thoughts or advice.

Thanks in advance!


[TABLE="width: 1249"]
<colgroup><col><col><col span="3"><col><col><col span="3"><col><col><col span="2"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A [/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ALL[/TD]
[TD]LEVEL 1[/TD]
[TD]LEVEL 2[/TD]
[TD]LEVEL 3[/TD]
[TD][/TD]
[TD]LEVEL 5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]COMPANY STRUCTURE[/TD]
[TD]PEOPLE[/TD]
[TD]1ST[/TD]
[TD]2ND[/TD]
[TD]3RD[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD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/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Mick you're right. The 2nd Subdirector 3 should be named Subdirector 4.

The "Noone" next to the title Subdirector 4 means that the position of subdirector 4 is not filled.

So, in this last group, the employees refer to Manager 5 and Director 3 (since there is no SubDir 4).

I understand it's a bit complicated. Each employee should be monitored (and appraised) by 3 managers (columns M-O in the example, where the three managers are shown as: 1st, 2nd, 3rd)
 
Upvote 0
Mick, thank you so much for your help!

However, I've been trying to make it work to my prototype, but I can't. I can run the code in your example, and it works perfectly. But I cannot do it in mine.

The error I get is "subscript out of range" when in gets to this if:
For Ac = 0 To UBound(Nams)
If Split(Dn.Value, " ")(0) = Nams(Ac) Then St = Ac + 1: Exit For
Next Ac



Also, I am not able to recognise the code you wrote so as to make any conversions if necessary. But it doesn't seem to me that any conversion should take place. Maybe I'm wrong.

I'm using excel 2003, but this should not be a problem since it works in your file, saved as excel 2003.

So, any advice on how to proceed? I mean are there any restrictions on the names in column A? Or any other restrictions?

Your code is brilliant by the way, it just doesn't work in my file.

I'm looking forward to your reply.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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