Sumproduct OR

trone77

Board Regular
Joined
Dec 28, 2009
Messages
152
Office Version
  1. 2019
Platform
  1. Windows
The following formula returns the #value error message:

=OR(SUMPRODUCT(--($C$2:$C$33=1),--($D$2:$D$33=4)>2,1,""),
SUMPRODUCT(--($C$2:$C$33=1),--($E$2:$E$33=6)>2,1,""),
SUMPRODUCT(--($D$2:$D$33=4),--($E$2:$E$33=6))>2,1,"")

Instead I need it to count if the string above occurs more than twice.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
The following formula returns the #value error message:

=OR(SUMPRODUCT(--($C$2:$C$33=1),--($D$2:$D$33=4)>2,1,""),
SUMPRODUCT(--($C$2:$C$33=1),--($E$2:$E$33=6)>2,1,""),
SUMPRODUCT(--($D$2:$D$33=4),--($E$2:$E$33=6))>2,1,"")

Instead I need it to count if the string above occurs more than twice.
Do you mean...
Code:
=IF(OR(
    SUMPRODUCT(--($C$2:$C$33=1),--($D$2:$D$33=4))>2,
    SUMPRODUCT(--($C$2:$C$33=1),--($E$2:$E$33=6))>2,
    SUMPRODUCT(--($D$2:$D$33=4),--($E$2:$E$33=6))>2),1,"")
if not, would you elaborate on the the problem you want to solve in words?
 
Upvote 0
Do the individual SUMPRODUCTS work?

It doesn't look to me as though they would.

Are you perhaps missing a closing parentheses for the SUMPRODUCT?

SUMPRODUCT(--($C$2:$C$33=1),--($D$2:$D$33=4))
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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