ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
2
🔢 COUNTIFS — Count with Multiple Criteria
3
Free companion workbook from sheetsandcells.com · 9 sheets · Same 24-row sales log as the SUMIFS workbook · Cross-references match — 2 transactions for North+Widget A here = $6,249.60 there.
4
5
✓ Works in Excel 2007+, Excel 365, Excel for the web, Google Sheets, LibreOffice, and Apple Numbers. COUNTIFS has been available since Excel 2007 — safe for any workbook.
6
7
8
The COUNTIFS syntax
9
Syntax: COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2, ...])
10
11
ArgumentTypeWhat it does
12
criteria_range1REQUIREDFirst column to filter on (e.g., Region, Product, Date). Same size as any other criteria_range.
13
criteria1REQUIREDValue or expression to match in criteria_range1. Text ("North"), number (100), cell reference (A2), or comparison (">100").
14
criteria_range2OPTIONALSecond filter column. Add up to 127 range/criteria pairs to layer filters.
15
criteria2OPTIONALSecond criteria expression. All criteria must be true for a row to be counted (AND logic).
16
17
Notice: unlike SUMIFS, COUNTIFS has NO sum_range argument — it just counts rows. The first argument is your first criteria_range. This is the ONLY structural difference between SUMIFS and COUNTIFS syntax; everything else about the criteria model is identical.
18
19
20
21
22
What's inside — 8 example sheets
23
24
DataSales Log — 24-row Q1 2026 sales log — identical to the SUMIFS workbook for cross-reference.
25
Example 1Basic COUNTIFS — Count sales in one region. Count sales for one product. Single-criterion counts.
26
Example 2Multiple Criteria — Count by region AND product. Add salesperson for triple filter. AND logic.
27
Example 3Date Range Counting — Count transactions in a date range. Count by month with EOMONTH.
28
Example 4Wildcards & Patterns — * and ? wildcards in criteria. Count every 'Widget*' variant.
29
Example 5Comparison Operators — Count transactions above/below thresholds. '>1000', '<>North'.
30
FamilyCOUNT vs COUNTA vs COUNTBLANK vs COUNTIF vs COUNTIFS — All 5 counting functions side by side. When to use each.
31
ErrorsCommon Errors Playground — Every VALUE, wrong-count cause demonstrated with fixes.
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100