Sum Product Array Issue

nlitedesign

New Member
Joined
Jun 17, 2018
Messages
8
Hello All,

Could someone please point out where my problem is within the following equation.

=SUMPRODUCT(--(A1>{0;5000;10000;20000}), (A1-{0;5000;10000;20000}), {0.01;0.0075;0.005;0.0025})

The equation is to work out a fee on a tabled scale (as follows):

ValueFee
£0 > £5,0001.00%
£5001 > £10,0000.75%
£10,001 > £20,0000.50%
£20,001 and Over0.25%

The correct answer is £213.89 but for some reason I keep getting £1126.422 as the answer...

I know it is probably something obvious, but i just cant see it now..

Thanks in advance

Keep Safe.

Phil
 
The problem is that formula is paying 1+.75+.5+.25 on the first 5000, that first 5000 is getting into all four bins.

Try
=MIN(A1,5000)*0.01+ MAX(0,MIN(10000,A1-5000))*0.0075 + MAX(0,MIN(20000,A1-10000))*0.0005 + MAX(0,A1-20000)*0.0025
Hi Mike,

Thanks very much for your reply, the equation makes sense I didn't think about that route. I got Sum Product stuck in my head.

I very much appreciate your time.

Thank you.
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
"What is happening where you changed the percentage to " -0.0025 " "

Try reviewing the formula shown in C4; you can use Excel's Formula Evaluate.
The formula uses the rate increment for each tier.
" Is there a way you entering the exact % on the right hand side of the array? "
N.B. With this formula the cell above the rates (C6) is blank.

Commission2020.xlsm
ABC
150,556.89Number
2Calculated
3Calculated213.89
4
5Bracket [rB]Rate
6
701.00%
85,0000.75%
910,0000.50%
1020,0000.25%
11
Commission
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT(--(A1>B7:B10),A1-B7:B10,C7:C10-C6:C9)


or
=SUMPRODUCT(--(A1>{0;5000;10000;20000}),A1-{0;5000;10000;20000},{0.01;-0.0025;-0.0025;-0.0025})
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,433
Messages
6,124,861
Members
449,195
Latest member
MoonDancer

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