Sumproduct Question

aells

New Member
Joined
Apr 22, 2008
Messages
13
I have a formula in a column S that looks like this =-IF(N83="Feed",O83*$E$33*$I$62*(P83/$I$60+$I$61),0)+R83

Column n = who transports
Column o = Pickups
Column P = round trip distance
Column R = Cost
Column D = Start Date

Cell E33 = Weeks in month
Cell i62 = rate - want to make this dynamic with price changing each month new cell E38
Cell i60 = speed - want to make this dynamic with price changing each month new cell E36
cell i61 = time (distance) - want to make this dynamic with price changing each month new cell E37

Currently, the calculation above is in column S
1654895117081.png


What I want to do is forecast these number in light blue column moving forward by month
=SUMPRODUCT(($N$83:$N$171="Feed")*($D$83:$D$171<=E$2))*((($O$83:$O$171)*E$33*E$38)*((($P$83:$P$171)/E$36+E$37)*($R$83:$R$171)))

1654895552677.png


This is not giving me any answer.

What am I missing? I am thinking I cannot have the single cell formula attached to the array, if that is the case how do i do this formula?
 

Attachments

  • 1654895048545.png
    1654895048545.png
    40.3 KB · Views: 26
  • 1654895274222.png
    1654895274222.png
    26.4 KB · Views: 15

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
at first glance, there might be missing parentheses?
Excel Formula:
=SUMPRODUCT(($N$83:$N$171="Feed")*($D$83:$D$171<=E$2))*((($O$83:$O$171)*E$33*E$38)*((($P$83:$P$171)/[SIZE=5][COLOR=rgb(184, 49, 47)][B]([/B][/COLOR][/SIZE]E$36+E$37)[SIZE=5][COLOR=rgb(184, 49, 47)][B])[/B][/COLOR][/SIZE]*($R$83:$R$171)))

Do consider to provide the sample through the XL2BB add-on. Pictures do not really help and most of us do not like to type over data from pictures (tedious job).
 
Upvote 0
Financial model formula.xlsx
ABCDEF
212/1/2021Dec-21Jan-22Feb-22
3Recurring Feed Waste Intake (tons / mo)846257433
4Pipeline (tons / mo)5,0745,0745,074
5Pipeline Captured0%0%5%
6Pipeline Projection (tons / mo)--254
7Total Feed Waste Intake (t)846257686
8SECURED RECURRING WASTE INTAKE
9Secured Feed Revenue$ 123,241215,802363,167
10Hauling Revenue$ 27,720$ 27,720$67,920
11Total Secured Revenue ($ / mo)$ 151,807$ 243,522$ 431,087
12line item formulaWaste Feedstock$ 14,750$ 29,250$45,966
13 =-IF(N83="Feed",O83*$E$33*$I$62*(P83/$I$60+$I$61),0)+R83 Hauling Costs$ 44,7020 =SUMPRODUCT(sumif($D$83:$D$171,F$2,(($O$83:$O$171)*f35*f38))*$n$83:$n$171="Feedback)*($p$83:$p$171)/$F$36+$F$37)*($r$83:$R$171)
14Energy Costs$ 19,265$ 19,886$34,438
15Labor Costs$ 12,690$ 15,420$26,477
16Packaging Disposal$ 2,382$ 3,000$ 8,919
17Total Secured COGS ($ / mo)$ 93,789$ 67,557$ 115,799
18Secured Gross Profit ($ / mo)$ 58,018$ 175,966$ 315,288
19GM38%72%73%
RecurringFeedWasteIntake
Cell Formulas
RangeFormula
E2E2=EOMONTH($A$2,1)
F2F2=EOMONTH($A$2,2)
D3D3=SUMIFS($G$83:$G$170,$D$83:$D$170,"<="&D$2)
E3:F3E3=SUMIFS($F$83:$F$171,$D$83:$D$171,"<="&E$2)
D4:F4D4=SUMIFS($G$83:$G$170,$D$83:$D$170,"="&"pipeline")
D6:F6D6=D5*D4
D7:F7D7=D3+D6
D9D9=SUMIFS($W$83:$W$170,$D$83:$D$170,"<="&D$2)
E9E9=SUMPRODUCT(IF($D$83:$D$171<=E2,($F$83:$F$171*$H$83:$H$171)-($F$83:$F$171*($J$83:$J$171)-0.1)))+E$3*E$35*E$57
F9F9=SUMPRODUCT(IF($D$83:$D$171<=F2,($F$83:$F$171*$H$83:$H$171)-($F$83:$F$171*$J$83:$J$171)))+F$3*F$35*F$57
D10D10=SUMIFS($AD$83:$AD$170,$D$83:$D$170,"<="&D$2)
E10E10=-SUMPRODUCT(--($D$83:$D$171<=E$2)*($N$83:$N$171="Feedback")*($O$83:$O$171*$AC$83:$AC$171))*E35
F10F10=-SUMPRODUCT(IF($D$83:$D$171<=F$2,($O$83:$O$171*$AC$83:$AC$171)))*F35
D11D11=SUM(D5:D10)
E11:F11E11=SUM(E9:E10)
D12,F12D12=-SUMIFS($Z$83:$Z$170,$D$83:$D$170,"<="&D$2)
E12E12=SUMPRODUCT(IF($D$83:$D$171<=E$2,($F$83:$F$171*$Y$83:$Y$171)))*E$35
D13D13=-SUMIFS($S$83:$S$170,$D$83:$D$170,"<="&D$2)
E13E13=SUMPRODUCT(($N$83:$N$171="Feedback")*($D$83:$D$171<=E$2))*((($O$83:$O$171)*E$35*E$38)*((($P$83:$P$171)/E$36+E$37)*($R$83:$R$171)))
D14,F14D14=-SUMIFS($T$83:$T$170,$D$83:$D$170,"<="&D$2)
E14E14=SUMIFS($K$83:$K$170,$D$83:$D$170,"<="&E$2)*E$42
D15,F15D15=-SUMIFS($U$83:$U$170,$D$83:$D$170,"<="&D$2)
E15E15=-SUMIFS($G$83:$G$170,$D$83:$D$170,"<="&E$2)*E$44
D16,F16D16=-SUMIFS($V$83:$V$170,$D$83:$D$170,"<="&D$2)
E16E16=SUMPRODUCT(IF($D$83:$D$171<=E$2,($F$83:$F$171*$H$83:$H$171)))*E$35*E43
D17:F17D17=SUM(D12:D16)
D18:F18D18=-D17+D11
D19:F19D19=D18/D11
Press CTRL+SHIFT+ENTER to enter array formulas.
Named Ranges
NameRefers ToCells
DateStart=RecurringFeedWasteIntake!$D$83:$D$170D9:F10, D12:E16, F14:F16, F12, D3:F4
HaulingCosts=RecurringFeedWasteIntake!$S$83:$S$170D13
WeeklyVolume=RecurringFeedWasteIntake!$F$83:$F$170E16, E12, E9:F9, E3:F3
 
Upvote 0
Sorry I uploaded one part here is the other
Financial model formula.xlsx
DEFGHIJKLMNOPQRS
82Date StartFeed PriceWeekly VolumeMonthly VolumePackagingPackagingMoistureWater TonnageMonthly Feed ProductionWho PaysWho transportsPickups / WeekRound Trip DistanceEquipment TypeEquip CostHauling Costs
836/1/2021$ 21016640%-70%3826FeedBackFeedBack1154 dedicated trailer -$ (2,366)
846/1/2021$ 21014.5581%145%2037FeedBackFeedBack174 dedicated trailer -$ (1,438)
856/1/2021$ 21016642%145%2241FeedBackFeedBack2210 35-yard self-contained -$ (6,032)
866/1/2021$ 2105202%065%119RecycleWorksRecycleWorks2---$ -
876/1/2021$ 21031010%118%18RecycleWorksRecycleWorks2---$ -
886/1/2021$ 210282%010%-8RecycleWorksRecycleWorks2---$ -
896/1/2021$ 210283%01%(1)8RecycleWorksRecycleWorks2---$ -
906/1/2021$ 21010405%240%1127RecycleWorksRecycleWorks2---$ -
918/1/2021$ 21062.52501%335%62186FeedBackFeedBack670 35-yard self-contained -$ (8,352)
RecurringFeedWasteIntake
Cell Formulas
RangeFormula
K83:K91K83=(G83-I83)*(J83-0.1)
L83:L91L83=G83-I83-K83
P83P83=154
E83:E91E83=$P$67
G83:G91G83=F83*$E$35
I83:I91I83=H83*G83
S83:S91S83=-IF(N83="FeedBack",O83*$E$35*$I$63*(P83/$I$61+$I$62),0)+R83
Named Ranges
NameRefers ToCells
WeeklyVolume=RecurringFeedWasteIntake!$F$83:$F$170G83
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,123
Members
452,546
Latest member
Rafafa

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