Excel Hierarchy

aetedford

New Member
Joined
Mar 26, 2018
Messages
9
Office Version
  1. 365
I have some data found here: https://1drv.ms/x/s!AktAOe8JUNECiKkS30iC2jH4jX5GdQ?e=eYGYBa

Column A is the PARENT with 00000000 the TOP value.

Looking at the data in column B, we see 00000000 has many 2nd level values. Looking at the first 2nd level, 00000004, we then look that up in COLUMN A. No more values, so that one ends.

00000000 -> 00000004

The next one in Column B is 00000412. Looking that up in COLUMN A, we see it has 52 2nd level values. Then looking up those values, we get 3rd level and so on.

We start seeing how it builds.

LEVEL 1LEVEL 2LEVEL 3LEVEL 4LEVEL 5LEVEL 6LEVEL 7
0000000000000004
00000000000004120000002600014616
000000000000041200000034000000290000000900003415
0000000000000412000000340000002900000012
00000000000004120000003400000029000044910000001000003416
00000000000004120000003400000029000044910000001000014419
000000000000041200000034000000290000449100000011
00000000000004120000003400000031
00000000000004120000003400013412
00000000000004120000003700000024
00000000000004120000003700000025
000000000000041200000037000000280000714200014412
0000000000000412000000370000003300000012
000000000000041200000037000000330000001400000015
0000000000000412000000370000003300000020
0000000000000412000000370000003500000036
0000000000000412000000370000003500014412
00000000000004120000003700003368
00000000000004120000003700004615
00000000000004120000003700004732
00000000000004120000003700013604
000000000000041200000074
000000000000041200000154
000000000000041200000214

<tbody>
</tbody>

How can I automate this? Is it possible? Should it be done in something else, such as PowerBI?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,833
Messages
6,121,869
Members
449,054
Latest member
juliecooper255

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