COUNTIFS function
Counts the number of cells within a range that meet multiple criteria
Counts the number of cells within a range that meet multiple criteria.
Syntax
COUNTIFS(criteria_range1, criteria1, [criteria_range2], [criteria2])Square brackets indicate optional arguments.
Arguments
| Argument | Required | Meaning |
|---|---|---|
| criteria_range1 | Yes | The first range in which to evaluate the associated criteria.A1:A20 |
| criteria1 | Yes | The criteria in the form of a number, expression, cell reference, or text that define which cells will be counted. For example, criteria can be expressed as 32, ">32", B4, "apples", or "32".">10" |
| criteria_range2 | No · repeats | Additional ranges. You can enter up to 127 range.B1:B20 |
| criteria2 | No · repeats | Additional associated criteria. You can enter up to 127 criteria."<20" |
Try COUNTIFS
Count paid records in one region
=COUNTIFS(C2:C6,"East",E2:E6,"Paid")Count paid records in one region. The result is checked against a separately authored expected value for the supplied table. You can edit the data to explore the rule.
Inspect the current formula
Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.
Read the formula, one argument at a time
Explore the written function calls and their inputs. The calculation result belongs to the complete formula.
COUNTIFS · top-level call
=COUNTIFS(C2:C6,"East",E2:E6,"Paid")1 / 4 · criteria_range1
The first range in which to evaluate the associated criteria.
COUNTIFS reference ↗Follow the cells behind a result
Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.
The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.
Practice across worksheets
Build a linked lookup or conditional report, edit its source sheets and check the formula against other datasets.
Open cross-sheet formula practice →Practice a complete task
Reference and compatibility
Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.