Excel COUNTIFS function
Counts the rows that meet every condition at once. In Spanish Excel it is called CONTAR.SI.CONJUNTO.
Syntax
English Excel
=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], …)
Spanish Excel (Mexico)
=CONTAR.SI.CONJUNTO(rango_criterios1, criterio1, [rango_criterios2, criterio2], …)
Spanish Excel (Spain, Latin America)
=CONTAR.SI.CONJUNTO(rango_criterios1; criterio1; [rango_criterios2; criterio2]; …)
| Argument | What it is |
|---|---|
| criteria_range1 | The first range to check. |
| criteria1 | Its condition. |
| criteria_range2, criteria2optional | More range-and-condition pairs. |
Example
COUNTIFS counts the rows that meet every condition at once. Arguments come in pairs: range1, criteria1, range2, criteria2…
=COUNTIFS(B2:B11,"North",D2:D11,">10000")
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. Arguments come in pairs: range1, criteria1, range2, criteria2…
In G2, count how many sales were in the North region and over 10,000.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Salesperson | Region | Product | Amount | ||||
| 2 | Carmen | North | Laptop | 18,500 | North sales over 10,000 | |||
| 3 | Jorge | South | Monitor | 4,200 | ||||
| 4 | Lucía | North | Monitor | 3,900 | ||||
| 5 | Andrés | Central | Laptop | 21,000 | ||||
| 6 | Paola | South | Laptop | 17,800 | ||||
| 7 | Carmen | North | Tablet | 6,400 | ||||
| 8 | Jorge | Central | Tablet | 5,900 | ||||
| 9 | Lucía | North | Laptop | 19,900 | ||||
| 10 | Andrés | South | Monitor | 800 | ||||
| 11 | Paola | Central | Monitor | 4,600 | ||||
| 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 Excel it is CONTAR.SI.CONJUNTO. The formula =COUNTIFS(B2:B11,"North",D2:D11,">10000") is written =CONTAR.SI.CONJUNTO(B2:B11;"Norte";D2:D11;">10000") (or with commas in Mexico).
- Why does COUNTIFS use semicolons in some Excel versions?
- It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
- What is the most common COUNTIFS mistake?
- All ranges must be the same size, or it returns #VALUE!.