ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Tree from Parent/Child Pairs (https://www.excelbanter.com/excel-discussion-misc-queries/446336-tree-parent-child-pairs.html)

Commish

Tree from Parent/Child Pairs
 
I have a list of organizations in 2 columns - parent in column A, child in column B.

It could look like this:
A B
B C
B D
C E
D F
F G
and so on.

Is there an easy-ish way to convert this to a list of unique branches? Where the result would look like:
A B
A B C
A B C E
A B D
A B D F
A B D F G

Any thoughts?

SriramNA

Tree from Parent/Child Pairs
 
I had downloaded Excel files on the internet with names like Ctree
(Classification Tree) and TreeView for a similar task.

--
Sriram

"Commish" wrote in message
...

I have a list of organizations in 2 columns - parent in column A, child in
column B.

It could look like this:
A B
B C
B D
C E
D F
F G
and so on.

Is there an easy-ish way to convert this to a list of unique branches? Where
the result would look like:
A B
A B C
A B C E
A B D
A B D F
A B D F G

Any thoughts?



All times are GMT +1. The time now is 01:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com