Anyway to put logic into a single countif, sumif etc?
Hi there Blue,
Yes, there is. You can either use two COUNTIF() functions...
=COUNTIF(A2:A10,"=1")+COUNTIF(A2:A10,"=2")
Or you can use a slight workaround for using only one function...
=SUMPRODUCT((A2:A10=1)+(A2:A10=2))
Change the range(s) to suit. Note if you are using the SUMPRODUCT()
function the ranges must be exactly the same in dimensions. The COUNTIF()
should work faster though.
HTH
--
Zack Barresse
"BlueWolverine" wrote in message
...
Is there anyway to countif for multiple things?
like = countif(Range, "1" or "2")
I know you can do "<1" dor does not equal but can you do combos within a
countif or do you have to run multiple countifs
Thanks
--
BlueWolverine
MSE - Mech. Eng.
Go BLUE!
|