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]; …)

ArgumentWhat it is
criteria_range1The first range to check.
criteria1Its condition.
criteria_range2, criteria2optionalMore 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.

Advertising
Loading ad...

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…

Example=COUNTIFS(B2:B11,"Norte",D2:D11,">10000")CONTAR.SI.CONJUNTO = COUNTIFS

In G2, count how many sales were in the North region and over 10,000.

G2
ABCDEFGH
1SalespersonRegionProductAmount
2CarmenNorthLaptop18,500North sales over 10,000
3JorgeSouthMonitor4,200
4LucíaNorthMonitor3,900
5AndrésCentralLaptop21,000
6PaolaSouthLaptop17,800
7CarmenNorthTablet6,400
8JorgeCentralTablet5,900
9LucíaNorthLaptop19,900
10AndrésSouthMonitor800
11PaolaCentralMonitor4,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!.