Counts the number of times all the given criteria are met in the given cell ranges.
Syntax
test_range: The ranges you want to test for the given criteria. Eg., B2:B8
condition: The condition may be:
A number, such as 15
An expression, such as 2/3 or SQRT(A1)
A text string, such as "zoho"
Remarks
The additional test_ranges provided must be of the same size as that of the first given test_range.
The COUNTIFS function is not case-sensitive i.e. APPLE and Apple are treated similar.
Examples
|
Formula |
Result |
|
=COUNTIFS( B2:B8 ; ">300" ; A2:A8 ; "Lockers" ) |
2 |
=COUNTIFS(E2:E8;">20";E2:E8;"<30") | 3 |
In example 1, the given conditions are to count the number of cells where the number of units of "Lockers" sold is greater than 300. Although there are three cells containing the term "Lockers", only 2 is returned as the result, because one of the units sold is lesser than 300.
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
Similar Functions