Sumproduct counting multiple time

trone77

Board Regular
Joined
Dec 28, 2009
Messages
152
Office Version
  1. 2019
Platform
  1. Windows
I need the formula below to calculate if this sequence occurs 3 times instead of just once. How could this formula be revised?

=SUMPRODUCT(--($F$342:$F$372=8),--($G$342:$G$372="O"),
--($H$342:$H$372="O"),--($I$342:$I$372="E"),
--($K$342:$K$372="L"),--($L$342:$L$372="M"),--($M$342:$M$372="H"))
 

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.
I need the formula below to calculate if this sequence occurs 3 times instead of just once. How could this formula be revised?

=SUMPRODUCT(--($F$342:$F$372=8),--($G$342:$G$372="O"),
--($H$342:$H$372="O"),--($I$342:$I$372="E"),
--($K$342:$K$372="L"),--($L$342:$L$372="M"),--($M$342:$M$372="H"))
Do you mean to test whether the count this formula calculates is >= 3 ? If so, try:
Code:
=SUMPRODUCT(
    --($F$342:$F$372=8),
    --($G$342:$G$372="O"),
    --($H$342:$H$372="O"),
    --($I$342:$I$372="E"),
    --($K$342:$K$372="L"),
    --($L$342:$L$372="M"),
    --($M$342:$M$372="H")) >= 3
 
Upvote 0
This returns TRUE if the count = 3

=SUMPRODUCT(--($F$342:$F$372=8),--($G$342:$G$372="O"),
--($H$342:$H$372="O"),--($I$342:$I$372="E"),
--($K$342:$K$372="L"),--($L$342:$L$372="M"),--($M$342:$M$372="H"))=3
 
Upvote 0
Well I was just using 3 as an example, but really just multiple times and if it doesn't occur as many times to just leave it blank and not return false. I needed the formula for a conditional statement.
 
Upvote 0
Well I was just using 3 as an example, but really just multiple times and if it doesn't occur as many times to just leave it blank and not return false. I needed the formula for a conditional statement.

Something like...
Code:
=IF(SUMPRODUCT(
    --($F$342:$F$372=8),
    --($G$342:$G$372="O"),
    --($H$342:$H$372="O"),
    --($I$342:$I$372="E"),
    --($K$342:$K$372="L"),
    --($L$342:$L$372="M"),
    --($M$342:$M$372="H")) >= X2,"Yes","")

If on Excel 2007 or later...
Code:
=IF(COUNTIFS(
     ($F$342:$F$372,8,
      $G$342:$G$372,"O",
      $H$342:$H$372,"O",
      $I$342:$I$372,"E",
      $K$342:$K$372,"L",
      $L$342:$L$372,"M",
      $M$342:$M$372="H") >= X2,"Yes","")

where X2 houses a value like 3...
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,551
Members
452,927
Latest member
rows and columns

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