Indented parent child relationship

motivatedgorilla

New Member
Joined
Apr 13, 2014
Messages
34
I have the following table and i need to be able to present it an indented list of parent child relationship. The hierarchy can go 1000+ levels deep. How do i achieve this using VBA?

ONameOPackIDPPackIDPNameParentID
Name1556556Box1389
Name2420420Box2402
Name3301301Box3671
Name4409407Box4402

<tbody>
</tbody>

If there is a better way of presenting it, it isn't limited to an indented list.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
From that table, I can't figure out who is parent and who is child.

Also, can a parent have more than one child? Can a child have more than one parent?
 
Upvote 0
From that table, I can't figure out who is parent and who is child.

Also, can a parent have more than one child? Can a child have more than one parent?

Yes. A parent can have more than one child and a child is limited to a single parent. Sorry, i copied a subset of data from a workbook that has over 50,0000 rows.
 
Upvote 0
What do you mean? Do you mean the table?

An element with a name is assigned to a given pack, which has an id. The pack may either be a parent of the root or a child of another pack.
 
Upvote 0

Forum statistics

Threads
1,216,182
Messages
6,129,361
Members
449,506
Latest member
nomvula

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