I have a range where I need to derive the level/depth in the hierarchy for each cell where some cells are comma seperated , for example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Task[/TD]
[TD]SubTask[/TD]
[TD]ParentTask[/TD]
[/TR]
[TR]
[TD]T1[/TD]
[TD]T2[/TD]
[TD]T0[/TD]
[/TR]
[TR]
[TD]T5[/TD]
[TD]T3,T4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]T8[/TD]
[TD][/TD]
[TD]T2[/TD]
[/TR]
</tbody>[/TABLE]
In this example range, the level of T0, T5 is 1. The level of T1,T3,T4 is 2. The level of T2 is 3, The level of T8 is 4, I need an output like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]Task[/TD]
[TD]Level[/TD]
[/TR]
[TR]
[TD]T0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]T5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]T1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]T3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]T4[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]T2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]T8[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
Can anyone please provide direction in Excel how to achieve this
[TABLE="width: 500"]
<tbody>[TR]
[TD]Task[/TD]
[TD]SubTask[/TD]
[TD]ParentTask[/TD]
[/TR]
[TR]
[TD]T1[/TD]
[TD]T2[/TD]
[TD]T0[/TD]
[/TR]
[TR]
[TD]T5[/TD]
[TD]T3,T4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]T8[/TD]
[TD][/TD]
[TD]T2[/TD]
[/TR]
</tbody>[/TABLE]
In this example range, the level of T0, T5 is 1. The level of T1,T3,T4 is 2. The level of T2 is 3, The level of T8 is 4, I need an output like this
[TABLE="width: 500"]
<tbody>[TR]
[TD]Task[/TD]
[TD]Level[/TD]
[/TR]
[TR]
[TD]T0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]T5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]T1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]T3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]T4[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]T2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]T8[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
Can anyone please provide direction in Excel how to achieve this