Multiple child Parent relation hierarchy.

gshalini

New Member
Joined
Jan 21, 2018
Messages
3
Hi, I wanted to create a Hierarchy, which can contain multiple parent and child.

Input Data :-
Role123456789
ARRRR
BRRRRRR
CRRRRRRR
DRRRR
ERRRRRRR
FRRRRR

<tbody>
</tbody>

Role A - 1,2,3,4
So each Role is formed with the data's in 1, 2, 3...

Wanted to create a Hierarchy of Parent child relation.

Output expected :-

ParentAD
ChildB FC
GranchildE

<tbody>
</tbody>

Kindly help me to create Output table for a large data.


<colgroup><col span="7"><col><col span="2"></colgroup><tbody>
</tbody>
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Welcome to the Board!

I'm confused. How do you know that B and F are children of A?
 
Upvote 0
Hi Eric,

B and F inherits 1,2,3 and 4 from A. B having an additional of 5 and F with an additional access of 6.
 
Upvote 0
OK, consider this sheet:

ABCDEFGHIJ
1Role123456789
2ARR
3BRRRR
4C
5D
6ERRRRR
7FRRRR

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet5



B and F are both children of A, since A has 1/2, and B and F both have 1/2. E is a child of B, but not F. D is a child of F, but not B. How do you want this displayed?

ABC
11ParentAA
12ChildBF
13GrandchildED

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet5



How deep do you want it? Grandchild, greatgrandchild, great-great-, etc.? How big is your actual table?

And you can also consider E and D to be children of A by your logic. This can get complicated very fast.
 
Upvote 0
Hi Eric,

Apologies for late reply.

Yep the hierarchy which I'm look for will be Grandchild, greatgrandchild, great-great... etc. It may got till 6 levels of relationships.

Basic parent with 1 child will be easy, however requirement is that 1 child may have multiple parent :(

Regards,
Shalini
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,535
Members
449,037
Latest member
tmmotairi

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