Sumproduct/formula help needed

William Rivero

New Member
Joined
Jul 3, 2011
Messages
10
___A____B___C___DD___EE___FF
1__Y________Y_________Y____Y
2_______Y
3_______Y_____________Y____Y
4_______Y___Y_____Y____Y
5__________________________Y

Problem: I want to count rows in columns A:C with more than 1 "Y" (should return a value of 2 in this case) and do the same with columns D:H (should return a value of 3).

Problem2: Also I want to count rows with >1 "Y" in A:C AND D:H (should get 2 [for rows 1 and 4]) in combination.

Thank you in advance. I know I'm missing something somewhere. Tried a very very long equation but its inaccurate.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
___A____B___C___DD___EE___FF
1__Y________Y_________Y____Y
2_______Y
3_______Y_____________Y____Y
4_______Y___Y_____Y____Y
5__________________________Y

Problem: I want to count rows in columns A:C with more than 1 "Y" (should return a value of 2 in this case) and do the same with columns D:H (should return a value of 3).

Problem2: Also I want to count rows with >1 "Y" in A:C AND D:H (should get 2 [for rows 1 and 4]) in combination.

Thank you in advance. I know I'm missing something somewhere. Tried a very very long equation but its inaccurate.
Try these...

Problem 1:

=SUMPRODUCT(--(MMULT(--(A2:C10="y"),{1;1;1})>1))

Problem 2:

=SUMPRODUCT(--(MMULT(--(A2:C10="y"),{1;1;1})>1),--(MMULT(--(D2:H10="y"),{1;1;1;1;1})>1))
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

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