SUMPRODUCT Problem

MarkMMcGuireNEUK

New Member
Joined
Jun 27, 2024
Messages
1
Office Version
  1. 2011
Platform
  1. Windows
The SUMPRODUCT formula I am using is not returning the expected result. Can anyone please help me?
I am trying to write a formula to calculate the bill for 10,000 units whose price reduces with volume.
Not sure why I am getting the calculated value of £82,576.50 instead of £63,682.00?
If there is an error I can't see where?

Formula in C7 is =SUMPRODUCT(--(C6>{50,2500,5000,10000}),--(C6-{50,2500,5000,10000}),{12.47,-4.14,-2.09,-0.83})

Many thanks in advance. Mark


Band fromBand toChargedPriceReductionTotal
0​
50​
50​
£ 12.47£ 623.50
51​
2,500​
2,450​
£ 8.33£ 4.14£ 20,408.50
2,501​
5,000​
2,500​
£ 6.24£ 2.09£ 15,600.00
5,001​
10,000​
5,000​
£ 5.41£ 0.83£ 27,050.00
10,000​
Totals£ 63,682.00
£ 82,576.50
Difference is£ 18,894.50over
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Commission2022.xlsm
ABCDEF
1
2Sold10,000.0063,682.0063,682.0063,682.00
3
4BracketsRatesAmount
5
6012.47
7508.33
82,5006.24
95,0005.41
11b
Cell Formulas
RangeFormula
D2D2=SUMPRODUCT(--(C2>B6:B9),C2-B6:B9,C6:C9-C5:C8)
E2E2=SUMPRODUCT(--(C2>{0;50;2500;5000}),C2-{0;50;2500;5000},{12.47;-4.14;-2.09;-0.83})
F2F2=SUM((C2>{0;50;2500;5000})*(C2-{0;50;2500;5000})*{12.47;-4.14;-2.09;-0.83})
 
Upvote 0
Try using Formula Evaluate to see the logic that is used.
I included an edit of your formula

Commission2022.xlsm
ABCDEFG
1
2
3
4
5
6Sold10,000.0063,682.0063,682.0063,682.0063,682.00
7
8BracketsRatesAmount
9
10012.47
11508.33
122,5006.24
135,0005.41
11b
Cell Formulas
RangeFormula
D6D6=SUMPRODUCT(--(C6>B10:B13),C6-B10:B13,C10:C13-C9:C12)
E6E6=SUMPRODUCT(--(C6>{0;50;2500;5000}),C6-{0;50;2500;5000},{12.47;-4.14;-2.09;-0.83})
F6F6=SUM((C6>{0;50;2500;5000})*(C6-{0;50;2500;5000})*{12.47;-4.14;-2.09;-0.83})
G6G6=SUMPRODUCT(--(C6>{0,50,2500,5000}),(C6-{0,50,2500,5000}),{12.47,-4.14,-2.09,-0.83})
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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