Excel COUNTIFS function🔀 Count with several conditions
The COUNTIFS function: Count with several conditions. Count a target group. This page shows the syntax, a worked example with its result and how the formula reads.
What does COUNTIFS do?
Count with several conditions. Count a target group
COUNTIFS syntax
=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Arguments in square brackets [ ] are optional · argument names follow Microsoft's documentation
COUNTIFS example with the result
=********
👑 Ready-to-use example formula for VIP supporters only · Become VIP
Formula in cell B6 Yellow cells = result
| A | B | |
|---|---|---|
| 1 | Sex | Age |
| 2 | M | 25 |
| 3 | F | 31 |
| 4 | M | 40 |
| 5 | F | 22 |
| 6 | F over 25 | 1 |
How it reads: Counts rows where A is F and B is over 25
Frequently asked questions about COUNTIFS
What does COUNTIFS do?
Count with several conditions. Count a target group
What does the COUNTIFS example return?
The example formula in cell B6 gives 1.
Which Excel versions have COUNTIFS?
It has been in Excel for many versions and works in the versions in common use today, including Excel for Microsoft 365.
🕸️ More logic formulas and related ones
Source: support.microsoft.com
Checked 17 November 2026 · by Black Sheep Barn · example results are calculated by the app's example engine, for learning