I have a spreadsheet that does a number of things including cost and inventory tracking. In a nutshell, this tab (Material by Mo) adds any (raw) material purchases to the starting or previous month's quantity and subtracts the specified quantities (Material Usage) for the number of products completed each month (Product Completion by Mo). Close to 90% of everything I turn out involves fabric, so the calculation for that is long, and every time I add a new product I have to manually go into each raw material used in the product and update the Material by Mo tab by adding another calculation of "+(Product Completion by Mo xxx * Material Usage yyy)". I'm wondering if there's a way to streamline this to the extent that I can have a single formula for everything on the Material by Mo tab, so when I add a new product I can just copy/paste from the previous row. I've included a few rows from each of the tabs involved in the Material by Mo calculations. I've also been playing around a bit with =INDEX but I just don't comprehend it enough to be successful yet. Any thoughts on this (other than VBA/coding) would be very much appreciated!
PLAYGROUND.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | Item Description | UOM | 31-Dec | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | ||
2 | Animal eyes (sets) | set | 38 | 41 | 41 | ||||||||||||
3 | Batting | yard | 0 | 0 | 0 | ||||||||||||
4 | Buttons | ea | 103 | 103 | 103 | ||||||||||||
5 | Charm pack | ea | 37 | 37 | 37 | ||||||||||||
6 | Cork | yard | 6 | 6 | 6 | ||||||||||||
7 | DecorBond 809 | yard | 22 | 22 | 22 | ||||||||||||
8 | D/O rings | set/2 | 30 | 30 | 30 | ||||||||||||
9 | Elastic | yard | 126 | 126 | 126 | ||||||||||||
10 | Fabric | yard | 914 | 914 | 914 | ||||||||||||
Material by Mo. |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:O2 | D2 | =IF(MONTH(D1)<=MONTH(TODAY()),C2+SUMIF(PPIVITEM,$A$2,PPIVCOUNT)+(MUEYESFCP*PCBMFCP)+(MUEYESFJR*PCBMFJR),"") |
D3:O3 | D3 | =IF(MONTH(D1)<=MONTH(TODAY()),C3+SUMIF(PPIVITEM,$A$3,PPIVCOUNT)+(MUBATQ1*PCBMQ1)+(MUBATQ2*PCBMQ2)+(MUBATQ3*PCBMQ3)+(MUBATQ4*PCBMQ4)+(MUBATQ5*PCBMQ5),"") |
D4:O4 | D4 | =IF(MONTH(D1)<=MONTH(TODAY()),C4+SUMIF('Purchases pivot table'!$A$1:$A$150,$A$4,'Purchases pivot table'!B$1:B$150)+('Product Completion by Mo.'!D2*'Material Usage'!$H$4)+('Product Completion by Mo.'!D20*'Material Usage'!$H$22),"") |
D5:O5 | D5 | =IF(MONTH(D1)<=MONTH(TODAY()),C5+SUMIF('Purchases pivot table'!$A$1:$A$150,$A$5,'Purchases pivot table'!B$1:B$150)+('Product Completion by Mo.'!D9*'Material Usage'!$I$11),"") |
D6:O6 | D6 | =IF(MONTH(D$1)<=MONTH(TODAY()),C6+SUMIF(PPIVITEM,$A$6,PPIVCOUNT),"") |
D7:O7 | D7 | =IF(MONTH(D1)<=MONTH(TODAY()),C7+SUMIF(PPIVITEM,$A$7,PPIVCOUNT),"") |
D8:O8 | D8 | =IF(MONTH(D1)<=MONTH(TODAY()),C8+SUMIF('Purchases pivot table'!$A$1:$A$150,$A$8,'Purchases pivot table'!B$1:B$150)+('Product Completion by Mo.'!D$14*'Material Usage'!$L$16),"") |
D9:O9 | D9 | =IF(MONTH(D1)<=MONTH(TODAY()),C9+SUMIF('Purchases pivot table'!$A$1:$A$150,$A$9,'Purchases pivot table'!B$1:B$150),"") |
D10:O10 | D10 | =IF(MONTH(D1)<=MONTH(TODAY()),C10+SUMIF('Purchases pivot table'!$A$1:$A$150,$A$10,'Purchases pivot table'!B$1:B$150)+('Product Completion by Mo.'!D$3*'Material Usage'!$N$5)+('Product Completion by Mo.'!D$4*'Material Usage'!$N$6)+('Product Completion by Mo.'!D$8*'Material Usage'!$N$10)+('Product Completion by Mo.'!D$9*'Material Usage'!$N$11)+('Product Completion by Mo.'!D$10*'Material Usage'!$N$12)+('Product Completion by Mo.'!D$14*'Material Usage'!$N$16)+('Product Completion by Mo.'!D$15*'Material Usage'!$N$17)+('Product Completion by Mo.'!D$21*'Material Usage'!$N$23)+('Product Completion by Mo.'!D$22*'Material Usage'!$N$24)+('Product Completion by Mo.'!D$23*'Material Usage'!$N$25)+('Product Completion by Mo.'!D$44*'Material Usage'!$N$44)+('Product Completion by Mo.'!D$45*'Material Usage'!$N$45)+('Product Completion by Mo.'!D$46*'Material Usage'!$N$46)+('Product Completion by Mo.'!D$47*'Material Usage'!$N$47),"") |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
PPIVCOUNT | ='Purchases pivot table'!B$5:B$150 | D6 |
PLAYGROUND.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | Product ID | Description | COGM | Wholesale Price | Retail Price | Animal eyes (sets) | Batting | Buttons | Charm pack | Cork | DecorBond 809 | D/O rings | Elastic | Fabric | ||
2 | Avg $/Unit | $0.50 | $11.95 | $0.18 | $13.99 | $50.81 | $3.99 | $1.22 | $0.83 | $10.49 | ||||||
3 | set | yard | ea | ea | yard | yard | 2/set | yard | yard | |||||||
4 | ORG-01 | accessory organizer | $ 3.61 | $ 30.00 | $ 42.00 | -2 | -0.11 | |||||||||
5 | BOW-01 | bowl cozy | $ 2.53 | $ 8.00 | -0.167 | |||||||||||
6 | CHX-01 | chickens | $ 0.39 | $ 5.00 | $ 5.00 | -0.014 | ||||||||||
7 | CNB-01 | covered notebook | $ 8.02 | $ 16.00 | $ 16.00 | -0.25 | -0.333 | |||||||||
8 | CBB-CRK | crossbody bag - cork | $ 37.45 | -0.333 | -0.333 | |||||||||||
9 | CBB-CTN | crossbody bag - cotton | $ 28.24 | -0.083 | -0.666 | |||||||||||
10 | DRW-MD | drawstring project bag | $ 10.73 | $ 20.00 | $ 30.00 | -0.75 | ||||||||||
11 | FCP-01 | froggy charm pack | $ 16.61 | $ 25.00 | -1 | -0.38 | -0.25 | |||||||||
Material Usage |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2 | F2 | =IFERROR(AVERAGEIF(DESC,F$1,UNITCOST),'Material by Mo.'!$Q2) |
G2 | G2 | =IFERROR(AVERAGEIF(DESC,G$1,UNITCOST),'Material by Mo.'!$Q3) |
H2 | H2 | =IFERROR(AVERAGEIF(DESC,H$1,UNITCOST),'Material by Mo.'!$Q4) |
I2 | I2 | =IFERROR(AVERAGEIF(DESC,I$1,UNITCOST),'Material by Mo.'!$Q5) |
J2 | J2 | =IFERROR(AVERAGEIF(DESC,J$1,UNITCOST),'Material by Mo.'!$Q6) |
K2 | K2 | =IFERROR(AVERAGEIF(DESC,K$1,UNITCOST),'Material by Mo.'!$Q7) |
L2 | L2 | =IFERROR(AVERAGEIF(DESC,L$1,UNITCOST),'Material by Mo.'!$Q8) |
M2 | M2 | =IFERROR(AVERAGEIF(DESC,M$1,UNITCOST),'Material by Mo.'!$Q9) |
N2 | N2 | =IFERROR(AVERAGEIF(DESC,N$1,UNITCOST),'Material by Mo.'!$Q10) |
C4:C11 | C4 | =-SUM(F4:BZ4*$F$2:$BZ$2) |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
DESC | ='Material purchases'!$B$14:$B$1997 | F2:N2 |
MU809CNB | ='Material Usage'!$K$7 | C7 |
MUBUTORG | ='Material Usage'!$H$4 | C4 |
MUCPFCP | ='Material Usage'!$I$11 | C11 |
MUEYESFCP | ='Material Usage'!$F$11 | C11 |
MUFABBOW | ='Material Usage'!$N$5 | C5 |
MUFABCHK | ='Material Usage'!$N$6 | C6 |
MUFABCNB | ='Material Usage'!$N$7 | C7 |
MUFABDRW | ='Material Usage'!$N$10 | C10 |
MUFABFCP | ='Material Usage'!$N$11 | C11 |
MUFABORG | ='Material Usage'!$N$4 | C4 |
MUFLCDRW | ='Material Usage'!$Q$10 | C10 |
MUFLCFCP | ='Material Usage'!$Q$11 | C11 |
MUINTCNB | ='Material Usage'!$W$7 | C7 |
MUINTORG | ='Material Usage'!$W$4 | C4 |
MUMAGORG | ='Material Usage'!$AA$4 | C4 |
MUNTBK | ='Material Usage'!$AE$7 | C7 |
MUPPFCP | ='Material Usage'!$AH$11 | C11 |
MURIBCNB | ='Material Usage'!$AL$7 | C7 |
MURIBDRW | ='Material Usage'!$AL$10 | C10 |
MUWALCHK | ='Material Usage'!$AV$6 | C6 |
MUWNZBOW | ='Material Usage'!$AX$5 | C5 |
UNITCOST | ='Material purchases'!$F$14:$F$1997 | F2:N2 |
PLAYGROUND.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | Product ID | Item Description | Beginning Qty | January | February | March | April | May | June | July | August | September | October | November | December | ||
2 | ORG-01 | accessory organizer | 0 | ||||||||||||||
3 | BOW-01 | bowl cozy | 61 | ||||||||||||||
4 | CHK-01 | chickens | 16 | ||||||||||||||
5 | CNB-01 | covered notebook | 8 | ||||||||||||||
6 | CBB-CRK | crossbody bag - cork | 0 | ||||||||||||||
7 | CBB-CTN | crossbody bag - cotton | 0 | ||||||||||||||
8 | DRW-MD | drawstring project bag | 14 | ||||||||||||||
9 | FCP-01 | froggy charm pack | 2 | 1 | |||||||||||||
Product Completion by Mo. |
PLAYGROUND.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Category | Description | Details | Cost | Units | Per Unit Cost | Company | Date of Purchase | ||
14 | Notions | Animal eyes (sets) | $ 2.00 | 4 | $ 0.50 | 1/12/2022 | ||||
Material purchases |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F14 | F14 | =IF(E14>0,D14/E14,"") |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
COST | ='Material purchases'!$D$14:$D$1997 | F14 |
PLAYGROUND.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | Yr of Purchase | 2022 | ||||||||||||||
2 | JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT | NOV | DEC | ||||
3 | Sum of Units | |||||||||||||||
4 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Grand Total | |||
5 | Animal eyes (sets) | 4 | 4 | |||||||||||||
6 | (blank) | |||||||||||||||
7 | Grand Total | 4 | 4 | |||||||||||||
Purchases pivot table |