Greetings All,
i have data set consisting of parent and child connections. I need to find a way to extract parent its child and its child's child and so on. Data structure is like this
[TABLE="width: 100"]
<tbody>[TR]
[TD]Parent[/TD]
[TD]Child[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]K[/TD]
[/TR]
</tbody>[/TABLE]
My formula is very rough and takes so much time to run it. I am looking for a faster way to make this connection.
My code runs the loop find top parent
Run the loop and find where child is parent
print out both the information and keeps on going.
My data has almost 8000-10000 lines and running the loop through them again and again is taking time (almost 15 minutes) and crashing my excel.
i have data set consisting of parent and child connections. I need to find a way to extract parent its child and its child's child and so on. Data structure is like this
[TABLE="width: 100"]
<tbody>[TR]
[TD]Parent[/TD]
[TD]Child[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]I[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]K[/TD]
[/TR]
</tbody>[/TABLE]
My formula is very rough and takes so much time to run it. I am looking for a faster way to make this connection.
My code runs the loop find top parent
Run the loop and find where child is parent
print out both the information and keeps on going.
My data has almost 8000-10000 lines and running the loop through them again and again is taking time (almost 15 minutes) and crashing my excel.