Parent Child derivation

JackNijssen

New Member
Joined
Jun 26, 2019
Messages
2
Hi,

In below example in column A+B, i have hierarchy on the node level of the parent in column A and the child in column B. I would like to derive the text of each parent in column C, like below. Is there a formula for column C how i can derive this value?

Column A Column B desired output Column C with parent
1 AA
2 BB AA
3 CC BB
4 DD CC
5 EE DD
5 EEE DD
5 EEEE DD
5 EEEEE DD

Thanks a lot, Jack
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Create a column that says "1" or "0" if the level is 1 aka Parent Part.
To the left of that columns, put the sums of the child parts you want to sum.
to the right of the "1" or "0" column, put this foumula in

=IFERROR(IF(L1=1,SUM(K2:INDEX($L2:$L$10,MATCH(TRUE,($L2:$L$10=1),0)),-1),""),IF(L4=1,SUM(K2:INDEX($L2:$L$10,MATCH(TRUE,($L2:$L$10=1),0)),-1),""))

Press Ctrl+Shift+Enter when entering the formula

In this example,

Column L is the "1" or "0" column
Column K is the sum of the child parts
Column M is where you enter this formula

If you need to sum up "Make" components that roll up to "Top Level"/Parent Parts, Then message me and I can show you what I have been working on for the past few months on how to accomplish this.

Thanks,
 
Last edited:
Upvote 0
Create a column that says "1" or "0" if the level is 1 aka Parent Part.
To the left of that columns, put the sums of the child parts you want to sum.
to the right of the "1" or "0" column, put this foumula in

=IFERROR(IF(L1=1,SUM(K2:INDEX($L2:$L$10,MATCH(TRUE,($L2:$L$10=1),0)),-1),""),IF(L4=1,SUM(K2:INDEX($L2:$L$10,MATCH(TRUE,($L2:$L$10=1),0)),-1),""))

Press Ctrl+Shift+Enter when entering the formula

In this example,

Column L is the "1" or "0" column
Column K is the sum of the child parts
Column M is where you enter this formula

If you need to sum up "Make" components that roll up to "Top Level"/Parent Parts, Then message me and I can show you what I have been working on for the past few months on how to accomplish this.

Thanks,

Hi, in the meanwhile i found the formula. = IF(A10>A9;B9;IF(A10=A9;C9:""))

Jack
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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