Sumproduct function

j-mont

New Member
Joined
Jan 29, 2013
Messages
1
Am having issues with this function, does anyone know of any issues with it?

Thanks

=SUMPRODUCT(--($B$4:$B$67<=2),--($B$4:$B$67>5.01),--($D$4:$D$67))
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Am having issues with this function, does anyone know of any issues with it?

Thanks

=SUMPRODUCT(--($B$4:$B$67<=2),--($B$4:$B$67>5.01),--($D$4:$D$67))
You are going to have to describe the "issues" you are having if you expect anyone to be able to help you.
 
Upvote 0
Am having issues with this function, does anyone know of any issues with it?
You'll certainly have issues (no, not issues, problems, issues are really things such as Egypt, Mali, Syria, Israel/Palestine etc.) with that formula as it hasn't a hope of returning much since the conditions seem to be mutually exclusive; what values can be both (less than or equal to 2) AND (greater than 5.01)?
Are you loking for values above 2 and less than 5?,
=SUMPRODUCT(($B$4:$B$67 < =2)+($B$4:$B$67 > 5.01),--($D$4:$D$67))
perhaps values either greater than 5.01 or less than 2??
=SUMPRODUCT(--($B$4:$B$67 > 2),--($B$4:$B$67 < =5.01),--($D$4:$D$67))
 
Last edited:
Upvote 0
You'll certainly have issues (no, not issues, problems, issues are really things such as Egypt, Mali, Syria, Israel/Palestine etc.) with that formula as it hasn't a hope of returning much since the conditions seem to be mutually exclusive; what values can be both (less than or equal to 2) AND (greater than 5.01)?
Are you loking for values above 2 and less than 5?,
=SUMPRODUCT(($B$4:$B$67 < =2)+($B$4:$B$67 > 5.01),--($D$4:$D$67))
perhaps values either greater than 5.01 or less than 2??
=SUMPRODUCT(--($B$4:$B$67 > 2),--($B$4:$B$67 < =5.01),--($D$4:$D$67))
Good point! I did not even bother to look at the formula because the OP said he had issues without telling us what they were, but yes, in looking at the formula, what you pointed out would definitely cause an "issue" to occur. I'm glad you choose to look at the formula in more detail than I did.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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