One option:

=COUNTIF(B:B; "Mammal") + COUNTIF(B:B; "Bird")

According to the documentation:

Notes

COUNTIF can only perform conditional counts with a single criterion. To use multiple criteria, use COUNTIFS or the database functions DCOUNT or DCOUNTA.

COUNTIFS: This function is only available in the new Google Sheets.

Example:

=DCOUNTA(B:B; 2; {"Type"; "Mammal"; "Bird"})
Answer from wchiquito on Stack Overflow
🌐
Google Support
support.google.com › docs › answer › 3093480
COUNTIF - Google Docs Editors Help
Google Sheets · Use functions & formulas · COUNTIF · Returns a conditional count across a range. COUNTIF Function · For this same video with audio descriptions: COUNTIF Function · To get an example spreadsheet and follow along with the video, click “Make a Copy” below.
Discussions

regex - How do I combine COUNTIF with OR - Stack Overflow
COUNTIFS: This function is only available in the new Google Sheets. More on stackoverflow.com
🌐 stackoverflow.com
Using OR in a countif or countifs
COUNTIF() isn't an array-enabling function so you'll need to add one like ARRAYFORMULA() or INDEX() to the equation and SUM() the resulting array, e.g. =SUM(INDEX(COUNTIF(A1:A4,{"FOO","BAR"}))). More on reddit.com
🌐 r/googlesheets
2
1
January 17, 2024
COUNTIFS multiple criteria in Google sheets - Stack Overflow
Google sheets . . . . I'm trying to count the number of times a text string is present as well as the quantity associated to it and then have it dynamically update when the table is filtered (other More on stackoverflow.com
🌐 stackoverflow.com
google sheets - Countifs with OR criterias and ranges - Stack Overflow
I have 5 columns with color options. I need to COUNT how many of them are different of Black in all options. I mean, the moment they have something different from black in one of the 5 columns, the... More on stackoverflow.com
🌐 stackoverflow.com
🌐
W3Schools
w3schools.com › googlesheets › google_sheets_countifs.php
Google Sheets COUNTIFS Function
GS Sort GS Sort Sheet GS Sort By ... function is a premade function in Google Sheets, which counts cells in a range based on one or more true or false condition....
🌐
Ben Collins
benlcollins.com › home › google sheets countifs function
Google Sheets COUNTIFS Function -
February 25, 2022 - The Google Sheets COUNTIFS function is used to count items in ranges with multiple test criteria.
🌐
Coupler.io Blog
blog.coupler.io › home › when to use countif or countifs in google sheets: real-life formula examples
COUNTIF vs. COUNTIFS in Google Sheets | Coupler.io Blog
August 5, 2025 - Count all the values greater than 5 (criterion) in the H column of the All orders sheet (data_range). You can count the number of blank or non-blank cells in the data range. ... The syntax is the same as for Excel COUNTIF not blank. ... In Excel, COUNTIF supports multiple criteria. In Google Sheets, the COUNTIF function accepts only one data range and one criterion.
🌐
GeeksforGeeks
geeksforgeeks.org › how-to-use-countifs-in-google-sheets
Google Sheets COUNTIFS Function - GeeksforGeeks
January 14, 2026 - Criterion1: The condition for the first range. Range2, Criterion2: Additional ranges and conditions (optional). The Google Sheets COUNTIFS function is a powerful tool for counting cells based on multiple conditions.
Find elsewhere
🌐
Reddit
reddit.com › r/googlesheets › using or in a countif or countifs
r/googlesheets on Reddit: Using OR in a countif or countifs
January 17, 2024 -

Assume the following values in A1:A4 -

FOO
BAR
FOO
FOOFYBAR

I'd like to count how many times the range contains FOO or BAR. The correct answer is 3.

One would think I would use this formula:
=countif(A1:A4,{"FOO","BAR"})

Alas, that yields only 2.

Conversely, this should be functionally the same formula:
=countif(A1:A4,{"BAR","FOO"})

But that yields 1.

It seems that it stops after counting the instances of the first value. How can I get it to count instances of all the values within the braces?

🌐
Rows
rows.com › blog › post › countif-formula-in-google-sheets
How to Use the COUNTIF Google Sheets Function in 2025
August 19, 2024 - Open your Google Sheet and input the formula into a cell. Replacing with your text criterion. Then press enter. ... This counts how many cells in B1:B20 contain a number greater than 100. The result is 3, which is showing slightly above the formula. While the formula for COUNTIF is =COUNTIF(range, "criterion")
🌐
Layer
golayer.io › home › countif & countifs in google sheets: formula & examples
COUNTIF & COUNTIFS in Google Sheets: Formula & Examples | Layer Blog
July 17, 2024 - You now know how to use COUNTIF and COUNTIFS to count cells containing numeric and Boolean values, as well as text. You also know how to write criteria to find numeric values greater than a specific number, numeric values within a range of values, exact matches for numeric and text values, partial matches for text using wildcards, and non-blank cells. To learn more about the related function SUMIF, check out our guide on SUMIF & SUMIFS in Google Sheets: Formula & Examples.
🌐
Sheetgo
sheetgo.com › home › how to use countifs in google sheets
How to use COUNTIFS in Google Sheets - Sheetgo
December 17, 2025 - =COUNTIFS(C:C, “John”, D:D, “New*”, E:E, “<>”) You can even input Boolean values (TRUE and FALSE) as conditions. Keep in mind, avoid using quotations so Google Sheets recognizes these as Booleans and not text.
🌐
Softr
softr.io › home › blog › 100 google sheets formulas that actually work: a cheat sheet
How to use COUNTIFS in Google Sheets - Guide
July 23, 2026 - COUNTIFS (Math): Counts cells that satisfy multiple conditions across one or more ranges simultaneously, extending COUNTIF beyond a single criterion. UPPER (Text): Converts every letter in a text string to uppercase, leaving numbers and punctuation ...
🌐
Statology
statology.org › home › google sheets: how to use countif with multiple ranges
Google Sheets: How to Use COUNTIF with Multiple Ranges
January 18, 2022 - The COUNTIFS() function in Google Sheets can be used to count the number of rows in a spreadsheet that meet multiple criteria.
🌐
IONOS
ionos.com › digital guide › online marketing › online sales › countif in google sheets
COUNTIF in Google Sheets: how to use the function in Google’s spreadsheet program
November 13, 2020 - The COUNTIF function in Google Sheets lets users quickly count the number of cells that meet their criteria. Here’s how it works.
🌐
Google Sheets
sheets-pratique.com › en › functions › countifs
Google Sheets Function: COUNTIFS
The COUNTIFS function totals the number of cells in a range that meet multiple criteria...