formulastreak

COUNTIF vs COUNTIFS

Updated · Works in: all current Excel versions, Google Sheets · Every example checked before release

Short answer

Use COUNTIFS(range1, criteria1, range2, criteria2, …): with one pair it's the same as COUNTIF(range, criteria), and it takes more conditions when you need them. Every condition must match; for OR, add two counts.

Use COUNTIFS: it does everything COUNTIF does and also takes more conditions. COUNTIF (range, criteria) counts cells that meet one condition; COUNTIFS (range1, criteria1, range2, criteria2, …) counts rows that meet every condition. Both are in every current version of Excel and in Google Sheets.

COUNTIFCOUNTIFS
ConditionsOneOne or more (all must match)
Argumentsrange, criteriarange1, criteria1, range2, criteria2, …
ExcelEvery current versionEvery current version
Google SheetsYesYes
OR logicAdd two COUNTIFsAdd two COUNTIFS

One condition: both give the same answer

How many orders were for plants? COUNTIF(E2:E13, "Plants") counts the cells in the Category column that say Plants. COUNTIFS(E2:E13, "Plants") gives the same number: with one pair of arguments, COUNTIFS is COUNTIF.

Leaf & Loam orders · edit K1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK1 = 6
ABCDEFGHIJK
1OrderDateCustomerProductCategoryQtyPriceStatusPlant orders6
210012 Mar 2026Mara OkaforMonsteraPlants1$34.00Shipped
310022 Mar 2026Jonas LindTerracotta potPots3$12.50Shipped
410033 Mar 2026Priya RamanSnake plantPlants2$22.00Shipped
510044 Mar 2026Tomás RuizWatering canTools1$18.00Pending
610055 Mar 2026Elif DemirFernPlants4$9.50Shipped
710065 Mar 2026Mara OkaforPotting mixSoil2$7.25Returned
810076 Mar 2026Kenji MoriPruning shearsTools1$24.00Shipped
910087 Mar 2026Ines VargaCeramic potPots2$19.00Pending
1010098 Mar 2026Jonas LindMonsteraPlants1$34.00Shipped
1110109 Mar 2026Sofia RossiFernPlants6$9.50Shipped
12101110 Mar 2026Priya RamanPotting mixSoil5$7.25Shipped
13101211 Mar 2026Leo BrandtSnake plantPlants1$22.00Pending

Two conditions: only COUNTIFS

How many plant orders have shipped? Add a second range and criteria: COUNTIFS(E2:E13, "Plants", H2:H13, "Shipped"). A row counts only when it matches both, so the answer drops from 6 to 5 (one plant order is still pending). Every range must be the same size, or COUNTIFS returns #VALUE!.

Leaf & Loam orders · edit K1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK1 = 5
ABCDEFGHIJK
1OrderDateCustomerProductCategoryQtyPriceStatusPlants shipped5
210012 Mar 2026Mara OkaforMonsteraPlants1$34.00Shipped
310022 Mar 2026Jonas LindTerracotta potPots3$12.50Shipped
410033 Mar 2026Priya RamanSnake plantPlants2$22.00Shipped
510044 Mar 2026Tomás RuizWatering canTools1$18.00Pending
610055 Mar 2026Elif DemirFernPlants4$9.50Shipped
710065 Mar 2026Mara OkaforPotting mixSoil2$7.25Returned
810076 Mar 2026Kenji MoriPruning shearsTools1$24.00Shipped
910087 Mar 2026Ines VargaCeramic potPots2$19.00Pending
1010098 Mar 2026Jonas LindMonsteraPlants1$34.00Shipped
1110109 Mar 2026Sofia RossiFernPlants6$9.50Shipped
12101110 Mar 2026Priya RamanPotting mixSoil5$7.25Shipped
13101211 Mar 2026Leo BrandtSnake plantPlants1$22.00Pending

Numbers, comparisons and cells

Both functions read criteria the same way: a comparison goes inside quotes, ">12000", and a cell is joined with &, ">"&K1. Here COUNTIFS counts North reps whose September sales were over 12,000. If a count comes out 0 when it shouldn't, see COUNTIF with a cell reference.

Q3 sales team · edit I1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultI1 = 1
ABCDEFGHI
1RepRegionJulAugSepTargetNorth over 12k1
2Amara OseiNorth$12,400$13,100$11,800$36,000
3Ben FischerSouth$9,800$10,250$12,100$30,000
4Lina ChenEast$15,200$14,800$16,900$45,000
5Diego AlvarezWest$8,700$9,100$8,400$28,000
6Eva NovakNorth$11,200$12,600$13,900$36,000
7Farid HaddadSouth$13,300$12,900$14,100$39,000
8Grace KimEast$10,100$9,600$10,800$33,000
9Hugo MartinWest$14,500$15,800$15,100$42,000

Which should a beginner learn first?

Learn COUNTIF first because it's the shorter idea, one range and one test, then move to COUNTIFS the same day. In your own sheets, write COUNTIFS every time: when someone later asks for “the same count, but only for March”, you add a pair instead of rewriting the formula. The same pattern runs through SUMIF and SUMIFS and AVERAGEIF and AVERAGEIFS.

Check yourself

One real exercise from the “Conditional totals” unit. Checked on our server; no account needed.

How many reps in the North (Region, column B) sold more than $12,000 in September (column E)? Answer in I1.

  • Use COUNTIFS
Select I1 and type = to start its formula (in the cell or the formula bar)
ABCDEFGHI
1RepRegionJulAugSepTargetNorth > 12k
2Amara OseiNorth$12,400$13,100$11,800$36,000
3Ben FischerSouth$9,800$10,250$12,100$30,000
4Lina ChenEast$15,200$14,800$16,900$45,000
5Diego AlvarezWest$8,700$9,100$8,400$28,000
6Eva NovakNorth$11,200$12,600$13,900$36,000
7Farid HaddadSouth$13,300$12,900$14,100$39,000
8Grace KimEast$10,100$9,600$10,800$33,000
9Hugo MartinWest$14,500$15,800$15,100$42,000

Common mistakes

  • Expecting OR from COUNTIFS. Every pair must match; for “Pending or Returned”, add two COUNTIFS together.

  • Ranges of different sizes in COUNTIFS, which give #VALUE!.

  • Writing a cell inside the quotes: ">K1" compares with the text K1. Use ">"&K1.

Questions

Can COUNTIFS use the same column twice?+

Yes, for a range of values: COUNTIFS(F2:F13, ">=2", F2:F13, "<=4") counts quantities from 2 to 4.

Are COUNTIF criteria case-sensitive?+

No, in Excel or Google Sheets. “plants” and “Plants” match the same cells.

Reading is step one. Now make it stick.

Practise it in a five-minute lesson on a live sheet, with instant feedback. No account needed for the free units.

Practise COUNTIFS in the course

Sources

Official documentation the facts on this page were checked against.