Pro Rata a Sumproduct Calculation

Sundance_Kid

Board Regular
Joined
Sep 2, 2017
Messages
155
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have included a sample to help explain.

I have been able to work out the overall cumulative/effective discount over the number of years to be 14.5%.

However, I also want to factor into the calculation for the 14.5% that for 2024 and 2027 the discounted price is only available for 6 months of each year whereas for 2025 & 2026 the discount price is available for the 12 months.

Is there a way to pro rate the overall calculation to take into account the 6 & 12 months?

Thanks

Book1
BCDEFGHIJKLM
2Months612126
3PriceYear% Share2024202520262027
4Product A20500510520530
5Product B30400410420430
6Product C20300310320330
7Product D20200210220230
8Product E10100110120130
9
10
11Months612126
12Discounted PriceYear% Share2024202520262027
13Product A20450460470480
14Product B30350360370380
15Product C20250260270280
16Product D20150160170180
17Product E1050607080
18
19Months612126
20DiscountYear% Share2024202520262027
21Product A20-10%-10%-10%-9%
22Product B30-13%-12%-12%-12%
23Product C20-17%-16%-16%-15%
24Product D20-25%-24%-23%-22%
25Product E10-50%-45%-42%-38%-14.5%Cumulative Discount
Sheet1
Cell Formulas
RangeFormula
E13:E17E13=E4
D21:D25D21=D13
E21:E25E21=E4
F21:I25F21=SUM(F13-F4)/F4
K25K25=(SUMPRODUCT((F13:I17)*(E13:E17))-SUMPRODUCT((F4:I8)*(E4:E8)))/SUMPRODUCT((F4:I8)*(E4:E8))
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Could you just annualise the discounted price to represent the 'average' price over 12 months?

i.e Formula in O13 is
Excel Formula:
=((F4*(1-ABS(F21))*F$11)+(F4*(12-F$11)))/12

Book1
BCDEFGHIJKLMNOPQR
2Months612126
3PriceYear% Share2024202520262027
4Product A20500510520530
5Product B30400410420430
6Product C20300310320330
7Product D20200210220230
8Product E10100110120130
9
10
11Months612126
12Discounted PriceYear% Share2024202520262027Annualised Discounted PriceYear% Share2024202520262027
13Product A20450460470480Product A20475460470505
14Product B30350360370380Product B30375360370405
15Product C20250260270280Product C20275260270305
16Product D20150160170180Product D20175160170205
17Product E1050607080Product E10756070105
18
19Months612126
20DiscountYear% Share2024202520262027
21Product A20-0.1-0.09804-0.09615-0.09434
22Product B30-0.125-0.12195-0.11905-0.11628
23Product C20-0.16667-0.16129-0.15625-0.15152
24Product D20-0.25-0.2381-0.22727-0.21739
25Product E10-0.5-0.45455-0.41667-0.38462-10.9%Cumulative Discount
Sheet1
Cell Formulas
RangeFormula
N13:N17N13=E13
O13:R17O13=((F4*(1-ABS(F21))*F$11)+(F4*(12-F$11)))/12
E13:E17E13=E4
D21:D25D21=D13
E21:E25E21=E4
F21:I25F21=SUM(F13-F4)/F4
K25K25=(SUMPRODUCT((O13:R17)*(E13:E17))-SUMPRODUCT((F4:I8)*(E4:E8)))/SUMPRODUCT((F4:I8)*(E4:E8))
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,208
Members
452,618
Latest member
Tam84

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