Adding with Dynamic Ranges

Cat129

Board Regular
Joined
Oct 20, 2012
Messages
96
Hi All,

Hoping someone can help me figure this one out.

Ideally, I would like to do this with formulas so others who use the spreadsheet can understand how it works. If not possible then VBA will be good.

I will try to explain the best I can. We have multiple assemblies with sub assemblies, some have up to 9 sub assemblies. Each given a level number, so all the assembly 3's below a 2 make up assembly 2, and all the 4 assemblies below assembly 3 make up that one, so on and so on.

I cant just add up all the 3's because they will be different depending on the parent assembly 2, and this is true for every level

What I need to do is all all the totals of the very bottom level assembly, put that total into its parent assembly, and continue this until we get to one. The reason we have to do it this was is because the very bottom level assembly parts will have the correct weight on them, but the parent assembly may have an estimated weight that is incorrect. We have to assume that the children are always correct.

Below I have just chucked some random numbers in and manually put in what the weight should be showing in the Calculated Weight Column.

I really hope I have made sense and someone can help me.

Thanks.

AssemblyTotal MassCalculated Weight
21.0062 ( 30 + 32)
32.0030 (From 4 below)
43.0030 (4 + 5 + 6 + 7 + 8 + 9)
54.00
55.00
56.00
57.00
58.00
39.0032 (10 + 11 + 12)
410.00
411.00
412.00

<tbody>
</tbody>
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,215,329
Messages
6,124,302
Members
449,149
Latest member
mwdbActuary

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