| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | Argument | Type | What it does | |||||||||||||||||||||||
12 | criteria_range1 | REQUIRED | First column to filter on (e.g., Region, Product, Date). Same size as any other criteria_range. | |||||||||||||||||||||||
13 | criteria1 | REQUIRED | Value or expression to match in criteria_range1. Text ("North"), number (100), cell reference (A2), or comparison (">100"). | |||||||||||||||||||||||
14 | criteria_range2 | OPTIONAL | Second filter column. Add up to 127 range/criteria pairs to layer filters. | |||||||||||||||||||||||
15 | criteria2 | OPTIONAL | Second 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 | Data | Sales Log — 24-row Q1 2026 sales log — identical to the SUMIFS workbook for cross-reference. | ||||||||||||||||||||||||
25 | Example 1 | Basic COUNTIFS — Count sales in one region. Count sales for one product. Single-criterion counts. | ||||||||||||||||||||||||
26 | Example 2 | Multiple Criteria — Count by region AND product. Add salesperson for triple filter. AND logic. | ||||||||||||||||||||||||
27 | Example 3 | Date Range Counting — Count transactions in a date range. Count by month with EOMONTH. | ||||||||||||||||||||||||
28 | Example 4 | Wildcards & Patterns — * and ? wildcards in criteria. Count every 'Widget*' variant. | ||||||||||||||||||||||||
29 | Example 5 | Comparison Operators — Count transactions above/below thresholds. '>1000', '<>North'. | ||||||||||||||||||||||||
30 | Family | COUNT vs COUNTA vs COUNTBLANK vs COUNTIF vs COUNTIFS — All 5 counting functions side by side. When to use each. | ||||||||||||||||||||||||
31 | Errors | Common 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 | ||||||||||||||||||||||||||