COUNTIFS Function in Excel: Count With Multiple Conditions

COUNTIFS Function in Excel: Count With Multiple Conditions featured illustration

πŸ“Ž This article includes 2 downloadable practice files ↓

⏱ 2 min readUpdated 5 October 2026

StatisticalLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. COUNTIFS in practice
  6. Where you will use it
  7. Worked example
  8. Mistakes people make
  9. Related functions
  10. Continue learning

COUNTIFS counts rows where every condition is true.

Advertisement

Syntax

=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Argument What it means
criteria_range1, criteria1 First range and condition.

Examples

Example 1

=COUNTIFS(B:B, "North", E:E, ">=50000")

Big North orders.

Example 2

=COUNTIFS(A:A, ">="&G1, A:A, "<="&G2)

Rows between two dates.

COUNTIFS in practice

Where you will use it

  • Orders from North above β‚Ή10,000
  • Employees in Pune with rating 4+
  • Tickets open more than 7 days for one team

Worked example

Orders above β‚Ή10,000 in the same region as the row.

RegionAmountFormulaResult
North15000=COUNTIFS($A$2:$A$4,A2,$B$2:$B$4,">10000")1
North8000=COUNTIFS($A$2:$A$4,A3,$B$2:$B$4,">10000")1
South22000=COUNTIFS($A$2:$A$4,A4,$B$2:$B$4,">10000")1

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Ranges of different sizesAll ranges must have the same rows
Expecting OR logicCOUNTIFS is AND; add two COUNTIFS for OR

COUNTIF Β· SUMIFS Β· AVERAGEIFS

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

⬇ Download all 2 files (ZIP Β· 38 KB)

  • πŸ“—
    SUMIFS/COUNTIFS scenarios workbookConditional sums and counts with dates, OR logic and wildcards, plus 4 classic reasons totals come out wrong β€” all with PASS/FAIL checks.
    ⬇ XLSX Β· 9 KB
  • πŸ“—
    Practice workbook: Statistics basics22 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 34 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *