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.
| COUNTIF | COUNTIFS | |
|---|---|---|
| Conditions | One | One or more (all must match) |
| Arguments | range, criteria | range1, criteria1, range2, criteria2, … |
| Excel | Every current version | Every current version |
| Google Sheets | Yes | Yes |
| OR logic | Add two COUNTIFs | Add 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.
| A | B | C | D | E | F | G | H | I | J | K | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | Date | Customer | Product | Category | Qty | Price | Status | Plant orders | 6 | |
| 2 | 1001 | 2 Mar 2026 | Mara Okafor | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 3 | 1002 | 2 Mar 2026 | Jonas Lind | Terracotta pot | Pots | 3 | $12.50 | Shipped | |||
| 4 | 1003 | 3 Mar 2026 | Priya Raman | Snake plant | Plants | 2 | $22.00 | Shipped | |||
| 5 | 1004 | 4 Mar 2026 | Tomás Ruiz | Watering can | Tools | 1 | $18.00 | Pending | |||
| 6 | 1005 | 5 Mar 2026 | Elif Demir | Fern | Plants | 4 | $9.50 | Shipped | |||
| 7 | 1006 | 5 Mar 2026 | Mara Okafor | Potting mix | Soil | 2 | $7.25 | Returned | |||
| 8 | 1007 | 6 Mar 2026 | Kenji Mori | Pruning shears | Tools | 1 | $24.00 | Shipped | |||
| 9 | 1008 | 7 Mar 2026 | Ines Varga | Ceramic pot | Pots | 2 | $19.00 | Pending | |||
| 10 | 1009 | 8 Mar 2026 | Jonas Lind | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 11 | 1010 | 9 Mar 2026 | Sofia Rossi | Fern | Plants | 6 | $9.50 | Shipped | |||
| 12 | 1011 | 10 Mar 2026 | Priya Raman | Potting mix | Soil | 5 | $7.25 | Shipped | |||
| 13 | 1012 | 11 Mar 2026 | Leo Brandt | Snake plant | Plants | 1 | $22.00 | Pending |
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!.
| A | B | C | D | E | F | G | H | I | J | K | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | Date | Customer | Product | Category | Qty | Price | Status | Plants shipped | 5 | |
| 2 | 1001 | 2 Mar 2026 | Mara Okafor | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 3 | 1002 | 2 Mar 2026 | Jonas Lind | Terracotta pot | Pots | 3 | $12.50 | Shipped | |||
| 4 | 1003 | 3 Mar 2026 | Priya Raman | Snake plant | Plants | 2 | $22.00 | Shipped | |||
| 5 | 1004 | 4 Mar 2026 | Tomás Ruiz | Watering can | Tools | 1 | $18.00 | Pending | |||
| 6 | 1005 | 5 Mar 2026 | Elif Demir | Fern | Plants | 4 | $9.50 | Shipped | |||
| 7 | 1006 | 5 Mar 2026 | Mara Okafor | Potting mix | Soil | 2 | $7.25 | Returned | |||
| 8 | 1007 | 6 Mar 2026 | Kenji Mori | Pruning shears | Tools | 1 | $24.00 | Shipped | |||
| 9 | 1008 | 7 Mar 2026 | Ines Varga | Ceramic pot | Pots | 2 | $19.00 | Pending | |||
| 10 | 1009 | 8 Mar 2026 | Jonas Lind | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 11 | 1010 | 9 Mar 2026 | Sofia Rossi | Fern | Plants | 6 | $9.50 | Shipped | |||
| 12 | 1011 | 10 Mar 2026 | Priya Raman | Potting mix | Soil | 5 | $7.25 | Shipped | |||
| 13 | 1012 | 11 Mar 2026 | Leo Brandt | Snake plant | Plants | 1 | $22.00 | Pending |
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.
| A | B | C | D | E | F | G | H | I | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Rep | Region | Jul | Aug | Sep | Target | North over 12k | 1 | |
| 2 | Amara Osei | North | $12,400 | $13,100 | $11,800 | $36,000 | |||
| 3 | Ben Fischer | South | $9,800 | $10,250 | $12,100 | $30,000 | |||
| 4 | Lina Chen | East | $15,200 | $14,800 | $16,900 | $45,000 | |||
| 5 | Diego Alvarez | West | $8,700 | $9,100 | $8,400 | $28,000 | |||
| 6 | Eva Novak | North | $11,200 | $12,600 | $13,900 | $36,000 | |||
| 7 | Farid Haddad | South | $13,300 | $12,900 | $14,100 | $39,000 | |||
| 8 | Grace Kim | East | $10,100 | $9,600 | $10,800 | $33,000 | |||
| 9 | Hugo Martin | West | $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
| A | B | C | D | E | F | G | H | I | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Rep | Region | Jul | Aug | Sep | Target | North > 12k | ||
| 2 | Amara Osei | North | $12,400 | $13,100 | $11,800 | $36,000 | |||
| 3 | Ben Fischer | South | $9,800 | $10,250 | $12,100 | $30,000 | |||
| 4 | Lina Chen | East | $15,200 | $14,800 | $16,900 | $45,000 | |||
| 5 | Diego Alvarez | West | $8,700 | $9,100 | $8,400 | $28,000 | |||
| 6 | Eva Novak | North | $11,200 | $12,600 | $13,900 | $36,000 | |||
| 7 | Farid Haddad | South | $13,300 | $12,900 | $14,100 | $39,000 | |||
| 8 | Grace Kim | East | $10,100 | $9,600 | $10,800 | $33,000 | |||
| 9 | Hugo Martin | West | $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.
Sources
Official documentation the facts on this page were checked against.