
Originally Posted by
Maudise
I want to see where Name = {"Jack", "James"}, Date >= 5th Jan AND <=7th Jan, Type = "Normal"
...
The formula I am using at the minute is
=countifs($A:$A, ">="&$E$2, $A:$A, "<"&$E$3, $C:$C, "<> Void",$D:$D, "=Normal", <PROBLEM OCCURS HERE> $B:$B, {"Jack", "James"})
The array for Jack / James in practice can get to 10 or so different variations and the spreadsheet is very large. Is there any way of embedding them to amalgamate the OR and the AND functions to count or is it easiest to use the =if(or(B1="jack", B1="James"),1,0) and then adding in the extra column =1 function into the countifs.
As NBVC has already shown you can use an inline array for the OR terms and encase within a SUM
=SUM(COUNTIFS(....,{"value1","value2","value3",...,"valuen"}))
however you should note you are in effect performing multiple COUNTIFS and thus a single field denoting 1/0 would make sense - used in conjunction with a single COUNTIFS function (much more efficient than SUMPRODUCT).

Originally Posted by
WinteE
=SUMPRODUCT((A1:A6=E1)*(B1:B6=D1)*1)
@Erik, the *1 is superfluous given the multiplication of the Logical Arrays is already coercing the output.
Bookmarks