In Google Spreadsheets, I need to use the COUNTIF function on a range with multiple criteria. So in the table below I would need to have something like =COUNTIF(B:B,"Mammal"or"Bird") and return a value of 4.
A |B
-------------------
Animal | Type
-------------------
Dog | Mammal
Cat | Mammal
Lizard | Reptile
Snake | Reptile
Alligator | Reptile
Dove | Bird
Chicken | Bird
I've tried a lot of different approaches with no luck. Any help appreciated - thanks.
You can also use ArrayFormula around a SUM(COUNTIFS()) construct:
Source: Google Docs Product Forum
One option:
According to the documentation:
COUNTIFS
: This function is only available in the new Google Sheets.Example: