Complex CountIfs with Sumproduct...

Scotster

Board Regular
Joined
May 29, 2017
Messages
59
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
I've never used SumProduct before so I've cobbled this together after a bit of googling. The Sumproduct works great and reports what I would expect but I need to eek out more to get what I need.

Here is the formula that I wanted to use.....

Code:
=COUNTIFS(O:O,0,Q:Q,"No",R:R,"<" & N:N)

Unfortunately the last part of the formula doesn't work the way I wanted. I found this out after breaking the formula down into portions and checking the results...

Code:
=COUNTIFS(O:O,0)
=COUNTIFS(Q:Q,"No")
=SUMPRODUCT(--(R:R))
<n:n))

I'm left with....

Code:
=COUNTIFS(O:O,0,Q:Q,"No")
=SUMPRODUCT(--(R:R))<n:n))

How do I combine the above for the multiple criteria?

Many thanks

PS Does anyone else find it incredibly frustrating typing on here? I need to re-press every 2nd or 3rd key due to them being dropped.

Example: just tried o tpe this without stppingand ended upwth an awful lot of the ketroks missing from wha I was trying to rite. It incudes spces and all srts.</n:n))
</n:n))
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Re: Help with Complex CountIfs with Sumproduct...

Like this?

=SUMPRODUCT(--(O:O=0),--(Q:Q="No"),--(R:R < N:N))<n:n))


but you really shouldnt use the full column references so if possible make it like the following as an example:

=SUMPRODUCT(--(O1:O100=0),--(Q1:Q100="No"),--(R1:R100 < N1:N100))<n1:n100))< html=""></n1:n100))<></n:n))
 
Last edited:
Upvote 0
Last edited:
Upvote 0
Re: Help with Complex CountIfs with Sumproduct...

Like this?

=SUMPRODUCT(--(O:O=0),--(Q:Q="No"),--(R:R < N:N))<n:n))


but you really shouldnt use the full column references so if possible make it like the following as an example:

=SUMPRODUCT(--(O1:O100=0),--(Q1:Q100="No"),--(R1:R100 < N1:N100))<n1:n100))< html=""></n1:n100))<></n:n))

Perfect, works a treat!

I will likely change to proper references but at the moment it varies daily. I'll be adding the formula via VBA eventually so I can find the last row.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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