Google Sheets COUNTIFS function
Counts the rows that meet every condition at once. In Spanish Sheets it is called CONTAR.SI.CONJUNTO.
Syntax
English Sheets
=COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2], …)
Spanish Sheets (Mexico locale)
=CONTAR.SI.CONJUNTO(intervalo_criterio1, criterio1, [intervalo_criterio2, criterio2], …)
Spanish Sheets (Spain, Latin America)
=CONTAR.SI.CONJUNTO(intervalo_criterio1; criterio1; [intervalo_criterio2; criterio2]; …)
| Argument | What it is |
|---|---|
| criteria_range1 | The first range to check. |
| criterion1 | Its condition: a text, a number or a comparison like ">100". |
| criteria_range2, criterion2optional | More range-and-condition pairs. |
Example
COUNTIFS counts the rows that meet every condition at once. It takes pairs of range and criterion: COUNTIFS(range1, criterion1, range2, criterion2…).
=COUNTIFS(B2:B11,"Monterrey",C2:C11,"Carmen")
Common mistake
All ranges must be the same size, or it returns #VALUE!.
About Ads
This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.
Ads help us keep WebHerramientas free for everyone
Practice COUNTIFS
Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons
COUNTIFS
COUNTIFS counts the rows that meet every condition at once. It takes pairs of range and criterion: COUNTIFS(range1, criterion1, range2, criterion2…).
In G2, count the Monterrey orders that Carmen sold.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Order | City | Seller | Amount | ||||
| 2 | P-101 | Monterrey | Carmen | 1200 | Carmen’s orders in Monterrey | |||
| 3 | P-102 | Guadalajara | Jorge | 850 | CDMX orders over 1000 | |||
| 4 | P-103 | CDMX | Carmen | 2300 | ||||
| 5 | P-104 | Monterrey | Lucía | 640 | ||||
| 6 | P-105 | CDMX | Jorge | 1750 | ||||
| 7 | P-106 | Guadalajara | Lucía | 980 | ||||
| 8 | P-107 | Monterrey | Jorge | 1500 | ||||
| 9 | P-108 | CDMX | Lucía | 410 | ||||
| 10 | P-109 | Guadalajara | Carmen | 1320 | ||||
| 11 | P-110 | Monterrey | Carmen | 760 | ||||
| 12 |
Tip: while typing, click a cell or drag across several to insert their reference.
Frequently asked questions
- What is COUNTIFS called in Spanish?
- In Spanish Google Sheets it is CONTAR.SI.CONJUNTO. The formula =COUNTIFS(B2:B11,"Monterrey",C2:C11,"Carmen") is written =CONTAR.SI.CONJUNTO(B2:B11;"Monterrey";C2:C11;"Carmen") (or with commas under a Mexico locale).
- Why does COUNTIFS use semicolons in some spreadsheets?
- It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
- What is the most common COUNTIFS mistake?
- All ranges must be the same size, or it returns #VALUE!.