SUMPRODUCT on two sets of ranges to calculate accumulated sum values

Capolavoro009

New Member
Joined
Dec 11, 2024
Messages
7
Office Version
  1. Prefer Not To Say
Platform
  1. MacOS
Apologies for garbled image below but what I’m trying to do is to determine which range my value falls between 0-60,703,125 and so on and then return corresponding commission value on the table range on the right hand side between 0-607,031

In addition as my value falls in different tiers (slices) I want to apply the corresponding commission for preceding steps plus the delta step.

For example:
If my stock value is 80,000,000 then the first 60,703,125 should be 607031 while 80million-60,7 million should be falling in the slice between 607031 and 1214062.

Thank you in advance for the help 🙏
Stock Value TiersRev Share %agePaid Commissions 60703125
10%R 0.00R 60,703,125.0010%0R 607,031.25
15%R 60,703,125.00R 91,054,687.5020%R 607,031.25R 1,214,062.50
20%R 91,054,687.50R 121,406,250.0030%R 1,214,062.50R 1,821,093.75
60%R 121,406,250.00R 364,218,750.0040%R 1,821,093.75R 2,428,125.00
100%R 364,218,750.00R 607,031,250.0060%R 2,428,125.00R 3,642,187.50
 
I recommend one of the formula suggestions.

The example below shows a ways to calculate the commission at each bracket level. If you want even more detail,
you can separate the calculation into columns.

Commission Cumulative Sales.xlsm
ABC
1
2400,000,000139,839,843.70139,839,843.70
3
4Tier MinimumPayout Rate
5
6010%6,070,312.50
760,703,12520%6,070,312.60
891,054,68830%9,105,468.60
9121,406,25040%97,125,000.00
10364,218,75060%21,468,750.00
111.E+308
1e
Cell Formulas
RangeFormula
B2B2=SUMPRODUCT(--(A2>aB),(A2-aB),aR)
C2C2=SUM(C6:C10)
C6:C10C6=MAX(0,MIN($A$2-A6,A7-A6))*B6
A11A11=9.99999999999999E+307
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thank you but i again think that the %age values are confusing here as there is no connection of them in the commission caculation formulas:

So the following table shows the input values as far as stock Tiers is concerned and what commissions should be paid out

Nedbank Littlefish Business Modeling_RevA.xlsx
BCDE
3 Stock Value Tiers Paid Commissions
4ZAR -ZAR 60,703,125-607,031
5ZAR 60,703,125ZAR 91,054,688ZAR 607,031ZAR 1,214,063
6ZAR 91,054,688ZAR 121,406,250ZAR 1,214,063ZAR 1,821,094
7ZAR 121,406,250ZAR 364,218,750ZAR 1,821,094ZAR 2,428,125
8ZAR 364,218,750ZAR 607,031,250ZAR 2,428,125ZAR 3,642,188
Sheet1
Cell Formulas
RangeFormula
B5:B8,D5:D8B5=C4
 
Upvote 0
A clear example complete with expected results would be helpful.
A formula can provide the answers that you require with or without the supporting table.
Your Paid Commissions show some 'unusual' results but I used that information to derive the rates.

Commission Cumulative Sales.xlsm
ABC
1
280,000,000992,968.50
3
4Tier MinimumPayout Rate
5
601.00%
760,703,1252.00%
891,054,6882.00%
9121,406,2500.25%
10364,218,7500.50%
11
12
1380,000,000992,968.50
1460,703,125607,031.00
1591,054,6881,214,062.26
16303,515,6252,276,366.94
17400,000,0002,607,031.00
18607,031,2503,642,187.25
19364,218,7502,428,124.75
20
1e
Cell Formulas
RangeFormula
B2,B13:B19B2=SUM((A2>$A$6:$A$10)*(A2-$A$6:$A$10)*($B$6:$B$10-$B$5:$B$9))
 
Upvote 0

Forum statistics

Threads
1,224,808
Messages
6,181,072
Members
453,020
Latest member
mattg2448

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