Sumproduct where minimum value applies

Robert Davidson

New Member
Joined
Aug 8, 2023
Messages
29
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I need to apply a minimum price to a sumproduct formula. If I multiply Qty x Price and the amount is less than £100 then a minimum price of £100 applies.

I need this to be a solution with a sumproduct formula as I need to perform other calculations in the same cell with the result. Any help on this would be much appreciated.,

QtyPriceTotalComments
90£5£450Total is >£100 so Qty x Price applies
5£2£1005 x £2 is less than £100 so £100 applies
3£12£1003 x £12 is less than £100 so £100 applies
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi Alan,

Yes that works for each row individually but I need to use sumproduct to give me the total answer in one cell without a helper column.
ok, try this

Book1
AB
1QtyPrice
290£5
35£2
43£12
5
6Total650
Sheet1
Cell Formulas
RangeFormula
B6B6=SUMPRODUCT(--((A2:A4)*(B2:B4)>100),((A2:A4)*(B2:B4)))+SUMPRODUCT(--((A2:A4)*(B2:B4)<=100))*100
 
Upvote 1
Solution
An alternative

T202402a.xlsm
AB
1QtyPrice
2905
352
4312
5
6Total650
7
3e
Cell Formulas
RangeFormula
B6B6=SUM(LET(a,((A2:A4)*(B2:B4)>100),IF(a,(A2:A4)*(B2:B4),100)))
 
Upvote 0
T202402a.xlsm
AB
1QtyPrice
2905
352
4312
5
6Total650
7650
3e
Cell Formulas
RangeFormula
B6B6=SUM(LET(a,((A2:A4)*(B2:B4)>100),IF(a,(A2:A4)*(B2:B4),100)))
B7B7=SUM(IF(A2:A4*B2:B4>100,A2:A4*B2:B4,100))
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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