I would like to include an "AND"
condition for one of the conditions I have in my COUNTIFS
clause.
Something like this:
=COUNTIFS(A1:A196;{"Yes"or "NO"};J1:J196;"Agree")
So, it should return the number of rows where:
(A1:A196 is either "yes" or "no") AND (J1:j196 is "agree")
In a more general case:
One solution is doing the sum:
or know its not the countifs but the sumproduct will do it in one line:
There is probably a more efficient solution to your question, but following formula should do the trick:
i found i had to do something akin to
Using array formula.
PRESS = CTRL + SHIFT + ENTER.
You could just add a few
COUNTIF
statements together:This will give you the result you need.
EDIT
Sorry, misread the question. Nicholas is right that the above will double count. I wasn't thinking of the
AND
condition the right way. Here's an alternative that should give you the correct results, which you were pretty close to in the first place: