actually I was trying to do for the same but this is not correct.please go through the sheet 1 and solve the query.I didn't get as you need in your attached file.
However look at attached in sheet1 col L:M or in your pivot chart at sheet 4. Is this what you are looking for??
& Also no named employee...As per your attachment there is no named reoprting manager on sheet1.
Pls explain or upload another sample.
It is to make hierarchy report by using formula for given sample data.in colm A employee code and in col B reporting manager code,each employee is reporting to his senior.in this sample data we have to do through who is reporting to whom,even seniors and then make a hierarchy report by dis data.I didn't get as you need in your attached file.
However look at attached in sheet1 col L:M or in your pivot chart at sheet 4. Is this what you are looking for??
not in name its a reporting person employee code code as well as employee code,As per your attachment there is no named reoprting manager on sheet1.
Pls explain or upload another sample.
Hi Ramesh,
Download the attached file here (Sheet 2- File size crossed 1 Mb). Pink Cells are helper cells, Yellow and green cells are final solution. The way you want is All three stage in one table, but I had come up with 2 stage:
1: Senior Reporting Manager - Reporting Manager
2: Reporting Manager - Employee
Please note: 1. Next time you upload a sample file, upload a file with 100~200 line of data, it becomes easier to check the result and also calculations time decreases.
Please note: 2. The solution is using great array formulas so calculations will be slower.
Regards,
@Ramesh Deo
I am not very proficient in VBA, so can't help you on that. May be you should wait and somebody can come up with a VBA solution or a better Formula Solution.
Regards,
Hi Narayan sir,Hi Narayan Sir,
See the attached pic for the difference in solution provided & solution required.
'SM' is provided & 'Required Format' is required.
Regards,
51350612
reports to 40104406
reports to 40100259
reports to 40100229
reports to 40100235
But sir can we do through vba or simply formula by your own approach or method for "Requred Format".Hi Ramesh ,
If we take the example of employee with code 51350612 , this is the complete tree of relationships :
The ideal way to represent this is to use the TreeView control ; this will allow you to expand / collapse at any point in the hierarchy.Code:51350612 reports to 40104406 reports to 40100259 reports to 40100229 reports to 40100235
Narayan
@Ramesh DeoHi Narayan sir,
please give a solution in Required Format,it would be better than SM format.
Hi Ramesh ,
If we take the example of employee with code 51350612 , this is the complete tree of relationships :
The ideal way to represent this is to use the TreeView control ; this will allow you to expand / collapse at any point in the hierarchy.Code:51350612 reports to 40104406 reports to 40100259 reports to 40100229 reports to 40100235
Narayan
Ok sir I am waiting.Hi Ramesh ,
First , can you confirm that you want the complete tree or do you want any abbreviated display ?
If you want the complete tree , getting it using formula may be either very difficult or even impossible.
Using VBA , it is possible , but I will take some time ; if you can wait , I'll do it and upload the file.
Narayan