Excel Sumproduct Formula

acool

Board Regular
Joined
Feb 10, 2023
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I am currently trying to create a sum product formula which calculates the Number of Months to repay a purchase value of $4,833,00. I would normally do this by using the formula F1/Sumproduct(A2:A7,C2:C7). However, in this instance, each of the products have a specific number of months of units on hand. After that month is surpassed, I would no longer like that product to contribute to the contribution margin calculation. For example, on Product A, after 8 Months I would not those contribution margin dollars to be factored into my calculation. In this example the payback period should equal to 9.9 Months. I have already received some great advice from member of the form on approaching this using a goal seek, however, I would like to create a formula which populates the payback period in Cell F2. Any help would be greatly appreciated. Thank You!
1702672816150.png
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Did Stephen Crump's suggestion not work for you?
If not, what result did you expect?

T202312a.xlsm
ABCDEF
1Amount4,833,000.00
26300823.15Months10
3520095.55
448001336.9
55500146.65
621002439.65
732502514.9
6a
Cell Formulas
RangeFormula
F1F1=SUMPRODUCT(IF(B2:B7<C9,B2:B7,C9),A2:A7,C2:C7)
F2F2=XMATCH(F1,SCAN(0,BYCOL((B2:B7>=SEQUENCE(,MAX(B2:B7)))*(A2:A7*C2:C7),LAMBDA(c,SUM(c))),LAMBDA(a,b,a+b)),1)
 
Upvote 0
Solution
Did Stephen Crump's suggestion not work for you?
If not, what result did you expect?

T202312a.xlsm
ABCDEF
1Amount4,833,000.00
26300823.15Months10
3520095.55
448001336.9
55500146.65
621002439.65
732502514.9
6a
Cell Formulas
RangeFormula
F1F1=SUMPRODUCT(IF(B2:B7<C9,B2:B7,C9),A2:A7,C2:C7)
F2F2=XMATCH(F1,SCAN(0,BYCOL((B2:B7>=SEQUENCE(,MAX(B2:B7)))*(A2:A7*C2:C7),LAMBDA(c,SUM(c))),LAMBDA(a,b,a+b)),1)
@Dave Patton Just curious-What is the C9 Reference in this formula? But this is exactly what I am looking for! Thank you Both
 
Upvote 0
I was side tracked. I did not intend to post the formula.
What result did you expect?
What is the expected calculation if 8 is the limiting factor for one line?
Why did you start a new thread?
Please check your previous thread.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

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