Rearrange Employees data in sensible format to create Org structure

Raghav125

New Member
Joined
Mar 7, 2015
Messages
3
Hi All,

I need to Rearrange Employees Name in sensible format to create Org structure.

I have the list of employees in the below format

Level 4Level 3level 2level 1
JohnJames
Michael

<tbody>
</tbody>
Jackson

<tbody>
</tbody>
John

<tbody>
</tbody>
James

<tbody>
</tbody>
Tyler

<tbody>
</tbody>
John

<tbody>
</tbody>
Jacob

<tbody>
</tbody>
John

<tbody>
</tbody>
Logan

<tbody>
</tbody>

<tbody>
</tbody>

However when we look at level-3 employee Column "John" who should be at level-4 is classified under level-3 reason being while updating the data-base an employees immediate reporting manager is considered as next level...

now I'm trying to create a org structure in excel pivot table so i need to organize this data, based on Level of the Employee

so that end results Should look like below

Level 4level 3level 2level 1
John

<tbody>
</tbody>
James

<tbody>
</tbody>
Michael

<tbody>
</tbody>
Jackson

<tbody>
</tbody>
John

<tbody>
</tbody>
James

<tbody>
</tbody>
Michael

<tbody>
</tbody>
Tyler

<tbody>
</tbody>
John

<tbody>
</tbody>
Michael

<tbody>
</tbody>
Jacob

<tbody>
</tbody>
John

<tbody>
</tbody>
James

<tbody>
</tbody>
Logan

<tbody>
</tbody>

<tbody>
</tbody>


as the count of employee are 3000+ can someone please help me out to write VBA Codes for this situation at the earliest....

or

Please suggest me any other way to deal with this situation

Many thanks in advance...

Raghav
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Upvote 0

Forum statistics

Threads
1,215,201
Messages
6,123,617
Members
449,109
Latest member
Sebas8956

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