Sumproduct Combined with Min function

Mooping

New Member
Joined
Jul 17, 2010
Messages
3
Hi all, I have two columns as follows

A B
40 0.5
35 0.2
60 1.25
70 2.00

And would like to Sumproduct the two but constraining the maximum value in column B to 1. Having a separate column that picks up the Min(B,1) is not practical as in practice I have a large number of B type columns.

My first attempt at a solution was
=+SUMPRODUCT($E9:$E1390,(MIN(D9:D1390,1)))
but it returns an error.

Many thanks for your help/suggestions!!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try...

=SUMPRODUCT(A1:A4,B1:B4,--(B1:B4<=1))


Hi all, I have two columns as follows

A B
40 0.5
35 0.2
60 1.25
70 2.00

And would like to Sumproduct the two but constraining the maximum value in column B to 1. Having a separate column that picks up the Min(B,1) is not practical as in practice I have a large number of B type columns.

My first attempt at a solution was
=+SUMPRODUCT($E9:$E1390,(MIN(D9:D1390,1)))
but it returns an error.

Many thanks for your help/suggestions!!
 
Upvote 0
Hi and welcome to the board!!
Code:
=SUM(IF(B1:B4<=1,A1:A4))
This is an array formula, so you must confirm it by using CTRL+SHIFT+ENTER

lenze
 
Upvote 0
Thanks for the warm welcome and quick suggestions - it strikes me that the proposed answers will only sumproduct if the value in column B is less than 1 and ignores values of column B that are greater than 1 -I'm looking for a solution that takes the value in column B if this is less than 1 and uses 1 if it's greater than 1. Any thoughts?

Thank you very very much!
 
Upvote 0
Actually, no, you are right. This seems to work like a charm.

Thanks a lot!

Hi and welcome to the board!!
Code:
=SUM(IF(B1:B4<=1,A1:A4))
This is an array formula, so you must confirm it by using CTRL+SHIFT+ENTER

lenze
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,978
Members
448,934
Latest member
audette89

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