Combining cascading relationship into a single table in excel

ajaysomasi

New Member
Joined
Mar 6, 2017
Messages
25
Hi all,

I really need help here.. I have Level 1, Level 2, Level 3 columns, each interrelated as shown below.. I'd like to produce an output as shown below.. I'm using some dummy data here but the dataset I have is large in size, hence I am not thinking of formula-based approach but like to use a Power Query or similar (in the excel environment) which can give me an output.. IF I use formula based approach, the excel file size becomes large and doesnt respond.. Really appreciate your help..

INPUT

Level 1 (Header)
A
B

Level 1 (Header)Level 2 (Header)
A1
A2
B3
B4

Level 2 (Header)Level 3 (Header)
1a
1b
2c
2d
3e
3f
4g
4h

OUTPUT

Level 1 (Header)Level 2 (Header)Level 3 (Header)
A1a
A1b
A2c
A2d
B3e
B3f
B4g
B4h
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Power Query:
let
    L2 = Excel.CurrentWorkbook(){[Name="tblL2"]}[Content],
    L3 = Excel.CurrentWorkbook(){[Name="tblL3"]}[Content],
    tbl = Table.Group(L3, {"Level 2"}, {{"Level 3", each _[Level 3]}}),
    tbl1 = Table.Join(L2,"Level 2", tbl, "Level 2"),
    Result = Table.ExpandListColumn(tbl1, "Level 3")
in
    Result

Book1
ABCDEFG
1Level 1Level 2Level 1Level 2Level 3
2A1A1a
3A2A1b
4B3A2c
5B4A2d
6B3e
7Level 2Level 3B3f
81aB4g
91bB4h
102c
112d
123e
133f
144g
154h
16
Sheet7
 
Upvote 0

Forum statistics

Threads
1,223,670
Messages
6,173,722
Members
452,528
Latest member
ThomasE

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