Help with Box in box type calculation.

wolf735

Board Regular
Joined
Oct 4, 2009
Messages
52
Office Version
  1. 365
Platform
  1. Windows
Hello i am trying figure out a formula to where the number of boxes are counted as they are repeatedly put in new boxes.

this is the setup i am using.
Book1.xlsx
GHI
2parentmainQty
3Tan Medium Box1
4Tan Medium BoxRed Small Box2
5Tan Medium BoxWhite Small Box3
6Red Small BoxPurple Compact Box3
7Red Small BoxTan Compact Box2
8Red Small BoxOrange Compact Box5
9White Small BoxYellow Compact Box9
10White Small BoxGray Compact Box2
11White Small BoxWhite Compact Box2
12Yellow Compact BoxWhite Kit3
13Yellow Compact BoxBlack Kit6
14Gray Compact BoxMaroon Kit14
15Yellow Compact BoxGray Kit7
16Gray Compact BoxTan Kit1
17White Compact BoxGreen Kit4
18White Compact BoxBrown Kit7
19Purple Compact BoxWhite Kit8
20Tan Compact BoxBlack Kit5
21Purple Compact BoxMaroon Kit1
22Tan Compact BoxGray Kit4
23Orange Compact BoxTan Kit7
24Orange Compact BoxGreen Kit3
25Purple Compact BoxBrown Kit8
Sheet5


Main -> parent then parent is recalculated as main.
I calculated each box type as a table, created 4 tables using sumifs formula the numbers past thou from top to bottom. Where i'm needing help is a formula that allows me to change in one table. the closest i get is the main going the parent of the same level. but not a main to parent on the level below.

Book1.xlsx
GHIJKLM
2parentmainQty
3Tan Medium Box1
4Tan Medium BoxRed Small Box2
5Tan Medium BoxWhite Small Box3
6Red Small BoxPurple Compact Box3
7Red Small BoxTan Compact Box2
8Red Small BoxOrange Compact Box5
9White Small BoxYellow Compact Box9
10White Small BoxGray Compact Box2
11White Small BoxWhite Compact Box2
12Yellow Compact BoxWhite Kit3
13Yellow Compact BoxBlack Kit6
14Gray Compact BoxMaroon Kit14
15Yellow Compact BoxGray Kit7
16Gray Compact BoxTan Kit1
17White Compact BoxGreen Kit4
18White Compact BoxBrown Kit7
19Purple Compact BoxWhite Kit8
20Tan Compact BoxBlack Kit5
21Purple Compact BoxMaroon Kit1
22Tan Compact BoxGray Kit4
23Orange Compact BoxTan Kit7
24Orange Compact BoxGreen Kit3
25Purple Compact BoxBrown Kit8
Sheet5


This is the multiple table method i used.
Book1.xlsx
RSTUV
2parentmainQtyTotalsHepler
3Tan Medium Box3
4
5
6parentmain
7Tan Medium BoxRed Small Box263
8Tan Medium BoxWhite Small Box393
9
10
11parentmain
12Red Small BoxPurple Compact Box166
13Red Small BoxTan Compact Box3186
14Red Small BoxOrange Compact Box5306
15
16White Small BoxYellow Compact Box199
17White Small BoxGray Compact Box5459
18White Small BoxWhite Compact Box8729
19
20parentmain
21Tan Compact BoxBlack Kit11818
22Yellow Compact BoxBlack Kit199
23Purple Compact BoxBrown Kit166
24White Compact BoxBrown Kit17272
25Tan Compact BoxGray Kit11818
26Yellow Compact BoxGray Kit199
27Orange Compact BoxGreen Kit13030
28White Compact BoxGreen Kit17272
29Gray Compact BoxMaroon Kit14545
30Purple Compact BoxMaroon Kit166
31Gray Compact BoxTan Kit14545
32Orange Compact BoxTan Kit13030
33Purple Compact BoxWhite Kit166
34Yellow Compact BoxWhite Kit199
35
Sheet5
Cell Formulas
RangeFormula
U7:U8,U21:U34,U16:U18,U12:U14U7=T7*V7
V7:V8V7=SUMIFS($T$3,$S$3,R7)
V12:V14,V16:V18V12=SUMIFS($U$7:$U$8,$S$7:$S$8,R12)
V21:V34V21=SUMIFS($U$12:$U$18,$S$12:$S$18,R21)
Thanks in advance.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,215,707
Messages
6,126,353
Members
449,311
Latest member
accessbob

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