Dynamically creating a parent-child table from anarra

thegamerulez

New Member
Joined
Jul 13, 2013
Messages
7
Hi All,
I have many such tables with the 1st column being a list of members and the remaining columns being the depth of their hierarchy.
The number of levels for a certain dimension is not fixed. i.e. GL might be 3 but Product might be 5 etc.
The list of members will also increase in the future.

GL CategoryLevel 1Level 2Level 3
Ad LoaderCore: DepthCore RevenueAll Revenue Categories
AP&A Tier 2 Management and Admin IncomeManagement & Admin Fees IncomeIntercompany IncomeAll Revenue Categories
AR ConversionOther RevenueAll Revenue Categories
Business Process Outsourcing IncomeManagement & Admin Fees IncomeIntercompany IncomeAll Revenue Categories
Business Support Services IncomeManagement & Admin Fees IncomeIntercompany IncomeAll Revenue Categories
Classic AdCore: Job PostingCore RevenueAll Revenue Categories
Classic - Cutover AdjustmentsCore: Job PostingCore RevenueAll Revenue Categories
Customer Support BPO Fee Recharge IncomeManagement & Admin Fees IncomeIntercompany IncomeAll Revenue Categories
Depth - Cutover AdjustmentsCore: DepthCore RevenueAll Revenue Categories
Depth - Finance AdjustmentsCore: DepthCore RevenueAll Revenue Categories
Direct / Advertising IncomeCore: DepthCore RevenueAll Revenue Categories

I am ultimately looking to get a 2-column output as under -

The format is in line with what I need to load to a legacy system to create the parent-child relationship.
GL MemberParent
Ad LoaderCore: Depth
AP&A Tier 2 Management and Admin IncomeManagement & Admin Fees Income
AR ConversionOther Revenue
Business Process Outsourcing IncomeManagement & Admin Fees Income
Business Support Services IncomeManagement & Admin Fees Income
Classic AdCore: Job Posting
Classic - Cutover AdjustmentsCore: Job Posting
Customer Support BPO Fee Recharge IncomeManagement & Admin Fees Income
Depth - Cutover AdjustmentsCore: Depth
Depth - Finance AdjustmentsCore: Depth
Direct / Advertising IncomeCore: Depth
Core: DepthCore Revenue
Management & Admin Fees IncomeIntercompany Income
Core: Job PostingCore Revenue
Core: DepthCore Revenue
Core RevenueAll Revenue Categories
Intercompany IncomeAll Revenue Categories
Other RevenueAll Revenue Categories
Core RevenueAll Revenue Categories
All Revenue Categories

My Version of Excel is Microsoft® Excel® for Microsoft 365 MSO (Version 2203 Build 16.0.15028.20242) 64-bit

I managed to find a solution but it unfortunately wasn't a dynamic array for one of the helper columns and hence couldn't spill as the members increased or decreased.
I am okay with a Power Query solution as well but couldn't think of a possible solution as my skills in PQ are pretty limited.

Any assistance with this will be greatly appreciated!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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