What it does
COUNTIFS counts rows that match multiple conditions.
Syntax or pattern
=COUNTIFS(criteria_range1, criteria1, ...)5 practical examples
Count by region and status
Count open East orders.
=COUNTIFS(Orders[Region],"East",Orders[Status],"Open")Each condition is applied to the same rows.
Count within date range
Count orders between two dates.
=COUNTIFS(Orders[Date],">="&F1,Orders[Date],"<="&G1)Use two criteria on the same date column.
Count excluding a status
Count rows not cancelled.
=COUNTIFS(Orders[Status],"<>Cancelled")<> means not equal.
Count by dropdown selections
Use cells as criteria.
=COUNTIFS(Sales[Region],H2,Sales[Product],H3)Good for interactive reports.
Count blank owners by status
Find open tasks with no owner.
=COUNTIFS(Tasks[Status],"Open",Tasks[Owner],"")A practical data cleanup check.
Common mistakes to avoid
- Selecting ranges with different sizes.
- Using text values where numbers are required.
- Forgetting how blanks and hidden rows are treated.
Related Excel examples
FAQ
Can this formula use Excel Tables?
Yes. Structured references often make summary formulas easier to read.
Here are some ideas for you
Optional resources that may help if you are learning formulas, building reports, or working in spreadsheets often.
- Excel formula booksSee ideas
Practice formulas with structured examples you can keep beside your desk.
- Excel shortcut guidesSee ideas
Build speed with keyboard shortcuts for selection, formatting and navigation.
- Numeric keypadsSee ideas
Helpful if you enter many numbers on a laptop or compact keyboard.
- External monitorsSee ideas
Useful for viewing large worksheets, formulas and reference tables side by side.
- Desk notebooksSee ideas
Sketch formula logic, report ideas and table structures before building.
- Laptop standsSee ideas
Make long spreadsheet sessions more comfortable and ergonomic.
Some links in this section may be affiliate links. Choose only what is useful for your own work.