SUMPRODUCT, Tiered Commissions, One for Old Customers, One for New Customers

mhlester

New Member
Joined
May 24, 2021
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I am sorry if this question has been answered in the thread, Multiple Tiered Calculations, or another thread, but they are so complex, it is difficult for me to follow to know if they will help me.

It seems I have a comparatively simple calculation, but it's too hard for me with my limited knowledge of advanced Excel functions.

The Company keeps a percentage of each sale depending on the category (pre-existing customer or new customer), and depending on the Company's cumulative share of commissions year-to-date.

I have manually calculated what I think are the correct amounts in the mini-table, based on the tiered commission structure shown in the mini-sheet and the two categories, 1 and 2.

But I think there might be a SUMPRODUCT, or other EXCEL function, to calculate the correct commission for each sale, so I have created a column where the formula might go.

Thank you for taking a look and hopefully providing a solution.

Best wishes,
Michael

SUMPRODUCT.xlsx
ABCDEF
1 CommissionCompany Share of Commission Manually CalculatedCumulativeFormula?Category
265,000.0026,000.0026,000.00 SUMPRODUCT? 2.4*65000
360,000.0018,000.0044,000.00 SUMPRODUCT? 1.3*60000
475,000.0030,000.0074,000.00 SUMPRODUCT? 2.4*75000
585,000.0022,333.3396,333.33 SUMPRODUCT? 1 16000/0.3=53333.33*.3 + 31666.67*.2
680,000.0024,000.00120,333.33 SUMPRODUCT? 2.3*80000
7100,000.0029,889.09150,222.42 SUMPRODUCT? 229666.67/.3=99998.9*.3 + 1111.1*.2
8
9
10Tier StartTier EndCategory 1Category 2
1109000030%40%
129000015000020%30%
1315000020%20%
Sheet1
Cell Formulas
RangeFormula
B2,B4B2=A2*$D$11
C2:C7C2=SUM($B$2:B2)
B3B3=A3*$C$11
B5B5=16000+$C$12*(A5-(16000/0.3))
B6B6=A6*$D$12
B7B7=29666.67/0.3*$D$12+$D$13*(A7-(29666.37/0.3))
 
The formula can be completed with or without the Cumulative column and it can be completed
without using SumProduct, Vlookup, or the Table of rates. The result yields the same result as I posted previously;
consequently, I did not post the example.

You stated "One of the salespersons has 8 tiers!",. It would be interesting to see the formula that you use for that calculation.
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi

Try this

Book11.xlsx
ABCD
1Total SalesCategory0
265,000.002.0026,000.0026,000.00
32,15,000.001.0090,333.3364,333.33
475,000.002.001,12,833.3322,500.00
585,000.001.001,29,833.3317,000.00
680,000.002.001,52,555.5622,722.22
71,00,000.002.001,72,555.5620,000.00
8
9
10SlabCategory 1Category 2
1110.30.4
12900010.20.3
131500010.20.2
149000010.20.2
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=SUM($D$1:D2)
D2:D7D2=SUM(IFERROR(LET(a,(($A$12:$A$14-$A$11:$A$13)-IF(($A$12:$A$14-$A$11:$A$13)+IF((C1-($A$12:$A$14-1))>0,0,(C1-($A$12:$A$14-1)))<0,0,($A$12:$A$14-$A$11:$A$13)+IF((C1-($A$12:$A$14-1))>0,0,(C1-($A$12:$A$14-1)))))/CHOOSE(B2,$B$11:$B$13,$C$11:$C$13),b,IFERROR(MATCH(A2,a,1),0)+1,c,IFERROR(MATCH(A2,a,1),0),d,INDEX(a,SEQUENCE(b),1),e,IFERROR(INDEX(a,SEQUENCE(c),1),0),f,INDEX(CHOOSE(B2,$B$11:$B$13,$C$11:$C$13),SEQUENCE(b)),IF(A2>d,d,A2-SUM(e))*f),0))


There is one drawback which i am trying to figure out as to how to solve it
So if your 1st total sales is beyond the First slab there is probelm with the formula
so if 1st sales is

Book11.xlsx
ABCD
1Total SalesCategory0
22,15,000.002.00-66,000.00-66,000.00
31.001.00-65,999.700.30
475,000.002.00-35,999.7030,000.00
585,000.001.00-10,499.7025,500.00
680,000.002.0021,500.3032,000.00
71,00,000.002.0061,500.3040,000.00
8
9
10SlabCategory 1Category 2
1110.30.4
12900010.20.3
131500010.20.2
149000010.20.2
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=SUM($D$1:D2)
D2:D7D2=SUM(IFERROR(LET(a,(($A$12:$A$14-$A$11:$A$13)-IF(($A$12:$A$14-$A$11:$A$13)+IF((C1-($A$12:$A$14-1))>0,0,(C1-($A$12:$A$14-1)))<0,0,($A$12:$A$14-$A$11:$A$13)+IF((C1-($A$12:$A$14-1))>0,0,(C1-($A$12:$A$14-1)))))/CHOOSE(B2,$B$11:$B$13,$C$11:$C$13),b,IFERROR(MATCH(A2,a,1),0)+1,c,IFERROR(MATCH(A2,a,1),0),d,INDEX(a,SEQUENCE(b),1),e,IFERROR(INDEX(a,SEQUENCE(c),1),0),f,INDEX(CHOOSE(B2,$B$11:$B$13,$C$11:$C$13),SEQUENCE(b)),IF(A2>d,d,A2-SUM(e))*f),0))


it is giving error.

So please check and let me know whats wrong the other limitation of the formula
 
Upvote 0
One Error which i came to know that the Total Sales Should not be greater than 200000. If it is so than it will show up error.
 
Upvote 0
Hi, CA_Punit!

Thank you for joining in!

If your question directed at me, I cannot answer it. My formula does work if the first commission is 215,000, but the formula in your post above is beyond my understanding.

Hi, Dave,

The following spreadsheet is just a straightforward example for one of the salespeople with several tiers, but no categories to worry about, and that is based on gross commissions, not on the Company Share, that works with SUMPRODUCT...

I haven't actually verified the calculations in a long time, but we've been using it for years for this salesperson, and I am sure I verified it in the past.

SUMPRODUCT.xlsx
ABCDEF
1Gross CommCumulative GrossLLC ShareAmountLLC%
235,687.5535,687.5528,550.04-0
3150,000.00185,687.55118,862.49-0.8
497,777.89283,465.4446,973.65180,000.000.6
555,000.00338,465.4420,653.46200,000.000.5
6250,000.000.4
7325,000.000.3
81,000,000.000.3
Sheet3
Cell Formulas
RangeFormula
B2:B5B2=SUM($A$2:A2)
C2:C5C2=SUMPRODUCT(--(SUM(A$2:A2)>=$E$3:$E$8),SUM(A$2:A2)-$E$3:$E$8,$F$3:$F$8-$F$2:$F$7)-SUM($C$1:C1)
 
Upvote 0
You did not reply when I inquired if you wanted a simple formula that did not include SumProduct or Lookup.

Your formula yields the correct result.
You can consider the following:
1. You calculate the cumulative amount in Column B, you could use those numbers in the formula.
2. The last tier is not required; 1000000 has the same rate as the 325000.
3. I named the array information; the array of
Brackets aB is equivalent to D3:D7 ={0;180000;200000;250000;325000}
and aR is equivalent to the array of rate differentials ={0.8;-0.2;-0.1;-0.1;-0.1}

Commission2020.xlsm
ABC
1Gross CommCumulative GrossLLC Share
235,687.5535,687.5528,550.04
3150,000.00185,687.55118,862.49
497,777.89283,465.4446,973.65
555,000.00338,465.4420,653.46
6215,039.63
7215,039.63
2a
Cell Formulas
RangeFormula
B2:B5B2=A2+N(B1)
C2C2=SUMPRODUCT(--(B2>=aB),B2-aB,aR)-SUM($C$1:C1)
C3:C5C3=SUMPRODUCT(--(B3>=$I$3:$I$7),B3-$I$3:$I$7,$J$3:$J$7-$J$2:$J$6)-SUM($C$1:C2)
C6C6=SUM(C2:C5)
B7B7=SUMPRODUCT(--(B5>=aB),B5-aB,aR)
 
Upvote 0
For 620,000 the maximum would be 148000 100% Category 2 and Minimum 100% Category 1 133,000.

Commission2020.xlsm
ABCDE
1Total SalesCategoryManual Check
265,000226,000.0026,000.00 65000 of tier 1 used
3215,000145,500.0045,500.00 25000 of tier 1 balance @ 2%
475,000215,000.0015,000.00
585,000117,000.0017,000.00
680,000216,000.0016,000.00
7100,000220,000.0020,000.00
8620,000139,500.00139,500.00
1ddd
Cell Formulas
RangeFormula
C2:C7C2=A2*0.2+(MAX(0,MIN(A2,90000-SUM($A$1:A1)))+MAX(0,MIN(A2,150000-SUM($A$1:A1)))*(B2=2))*0.1
D2D2=A2*0.4
D3D3=(90000-A2)*0.3+(A3-25000)*0.2
D4:D7D4=A4*0.2
C8:D8C8=SUM(C1:C7)
A8A8=SUM(A2:A7)
 
Upvote 0
Try this. I think this will solve your probelm. Try with different data.

Book11.xlsx
ABCD
1Total SalesCategory0 Company Sales
265,000.002.0026,000.0026,000.00
360,000.001.0044,000.0018,000.00
475,000.002.0074,000.0030,000.00
585,000.001.0096,333.3322,333.33
680,000.002.001,20,333.3324,000.00
71,00,000.002.001,50,222.2229,888.89
8
9
10SlabCategory 1Category 2
1110.30.4
12900010.20.3
131500010.20.2
144500010.150.15
159000010.150.15
Sheet1 (2)
Cell Formulas
RangeFormula
C2:C7C2=SUM($D$1:D2)
D2:D7D2=SUM(IFERROR(LET(a,(($A$12:$A$15-$A$11:$A$14)-IF(($A$12:$A$15-$A$11:$A$14)+IF((C1-($A$12:$A$15-1))>=0,0,(C1-($A$12:$A$15-1)))<0,0,($A$12:$A$15-$A$11:$A$14)+IF((C1-($A$12:$A$15-1))>0,0,(C1-($A$12:$A$15-1)))))/CHOOSE(B2,$B$11:$B$14,$C$11:$C$14),b,IFERROR(MATCH(A2,a+1,1),0)+1,c,IFERROR(MATCH(A2,a+1,1),0),d,INDEX(a,SEQUENCE(b),1),e,IFERROR(INDEX(a,SEQUENCE(c),1),0),f,INDEX(CHOOSE(B2,$B$11:$B$14,$C$11:$C$14),SEQUENCE(b)),IF(A2>d,d,A2-SUM(e))*f),0))
 
Upvote 0
Solution
Hi, Dave,

Yes, I would want a simple formula that does not include Lookup or SumProduct! if it gives the correct result.

Your row 3 for $215,000 in the chart above does not give the same result as I get (you get 45,500, I get 64,333.33), so there must be some disconnect between the logic of your calculation and the logic of mine. I know what the deal is, so I know what the correct result should be.

Row 3 is in Category 1. Until the Company share of $215,000 brings it cumulative share (of both Category 1 and Category 2 commissions combined) to $90,000, the Company share is 30%. If we apply 30% to the entire $215,000 commission we get. $64,500. If we add that to $26,000, we get $90,500. So most of the Company Share of the $215,000 commission is payable at 30%. only a very small portion is at 20%. Thus, $64,333.33 appears to be the correct Company Share. Your formula for some reason computes the Company Share mostly at 20% and a small portion at 30%. This is not how the Company Share is calculated.

SUMPRODUCT.xlsx
ABCDEFGHIJK
1CommissionLLC ShareLLC CumulativeAdam ShareAdam CumulativeCategory
2-
365,000.0026,000.0026,000.0039,000.0039,000.002
4215,000.0064,333.3390,333.33150,666.67189,666.671
575,000.0022,500.00112,833.3352,500.00242,166.672
685,000.0017,000.00129,833.3368,000.00310,166.671
780,000.0022,722.22152,555.5657,277.78367,444.442
8100,000.0020,000.00172,555.5680,000.00447,444.442
9100,000.0020,000.00192,555.5680,000.00527,444.442
1050,000.0010,000.00202,555.5640,000.00567,444.441
11770,000.00202,555.56567,444.44
12
13
142 Below 902 Above 1501 Below 901 Above 1502 Straddle 901 Straddle 902 Straddle 1501 Straddle 1502 Between 90 & 1501 Between 90 & 150Totals
15-
1626,000.00---------26,000.00
17-----64,333.33----64,333.33
18--------22,500.00-22,500.00
19---------17,000.0017,000.00
20------22,722.22---22,722.22
21-20,000.00--------20,000.00
22-20,000.00--------20,000.00
23---10,000.00------10,000.00
24-----------
25
26
27Tier StartTier EndCategory 1Category 2
2809000030%40%
299000015000020%30%
3015000020%20%
Sheet2
Cell Formulas
RangeFormula
B3:B10B3=K16
C3:C10C3=SUM($B$3:B3)
E3:E10E3=SUM($D$3:D3)
A11:B11,D11A11=SUM(A2:A10)
D3:D10D3=A3-B3
K15K15=SUM(A15:H15)
A16:A24A16=IF(F3<>2,0,IF(C3<$E$28,A3*$G$28,0))
B16:B24B16=IF(F3<>2,0,IF(C2>$E$29,A3*$G$30,0))
C16:C24C16=IF(F3<>1,0,IF(C3<$E$28,A3*$F$28,0))
D16:D24D16=IF(F3<>1,0,IF(C2>$E$29,A3*$F$30,0))
E16:E24E16=IF(F3<>2,0,IF(AND(C2<$E$28,C2+A3*$G$28>$E$28,C2+A3*$G$28<$E$29),($E$28-C2)+(A3-(($E$28-C2)/$G$28))*$G$29,0))
F16:F24F16=IF(F3<>1,0,IF(AND(C2<$E$28,C2+A3*$F$28>$E$28,C2+A3*$F$28<$E$29),($E$28-C2)+(A3-(($E$28-C2)/$F$28))*$F$29,0))
G16:G24G16=IF(F3<>2,0,IF(AND(C2<$E$29,C2+A3*$G$29>$E$29,C2+A3*$G$29>$E$29),($E$29-C2)+(A3-(($E$29-C2)/$G$29))*$G$30,0))
H16:H24H16=IF(F3<>1,0,IF(AND(C2<$E$29,C2+A3*$F$29>$E$29,C2+A3*$F$29>$E$30),($E$29-C2)+(A3-(($E$29-C2)/$F$29))*$F$30,0))
I16:I24I16=IF(F3<>2,0,IF(AND(C2>$E$28,C2+(A3*$G$29)<$E$29),A3*$G$29,0))
J16:J24J16=IF(F3<>1,0,IF(AND(C2>$E$28,C2+(A3*$F$29)<$E$29),A3*$F$29,0))
K16:K24K16=SUM(A16:J16)
 
Upvote 0
Try this. I think this will solve your probelm. Try with different data.

Book11.xlsx
ABCD
1Total SalesCategory0 Company Sales
265,000.002.0026,000.0026,000.00
360,000.001.0044,000.0018,000.00
475,000.002.0074,000.0030,000.00
585,000.001.0096,333.3322,333.33
680,000.002.001,20,333.3324,000.00
71,00,000.002.001,50,222.2229,888.89
8
9
10SlabCategory 1Category 2
1110.30.4
12900010.20.3
131500010.20.2
144500010.150.15
159000010.150.15
Sheet1 (2)
Cell Formulas
RangeFormula
C2:C7C2=SUM($D$1:D2)
D2:D7D2=SUM(IFERROR(LET(a,(($A$12:$A$15-$A$11:$A$14)-IF(($A$12:$A$15-$A$11:$A$14)+IF((C1-($A$12:$A$15-1))>=0,0,(C1-($A$12:$A$15-1)))<0,0,($A$12:$A$15-$A$11:$A$14)+IF((C1-($A$12:$A$15-1))>0,0,(C1-($A$12:$A$15-1)))))/CHOOSE(B2,$B$11:$B$14,$C$11:$C$14),b,IFERROR(MATCH(A2,a+1,1),0)+1,c,IFERROR(MATCH(A2,a+1,1),0),d,INDEX(a,SEQUENCE(b),1),e,IFERROR(INDEX(a,SEQUENCE(c),1),0),f,INDEX(CHOOSE(B2,$B$11:$B$14,$C$11:$C$14),SEQUENCE(b)),IF(A2>d,d,A2-SUM(e))*f),0))
Yes, indeed, it does! Thank you very much, CA_Punit! Now, I have to study your formula and learn how to do it for the next crazy deal my client makes!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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