CountIfFuncGrd 10
CountIfFuncGrd 10
The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:
“=COUNTIF (A2:A7,33)”
The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:
“=COUNTIF(A12:A17,“<50”)”
The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:
“=COUNTIF(A22:A27, “john”)”
Here the condition applied to the formula is the value “john.” The
COUNTIF formula checks the range of cells matching the given
condition. The given range has only one cell that satisfies the text
value “john”. Hence, the result is “1” which is displayed in cell A28.
The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:
“=COUNTIF(A32:A37, “<0”)”
Here the condition applied to the formula is less than zero. Now, the
COUNTIF formula will identify and count the numbers with negative
values in the given range. There are three such numbers in the
given range. Hence, the result is “3” which is displayed in cell A38.
The COUNTIF function is applied to the given range of cells, and the
formula is stated as follows:
“=COUNTIF(A42:A47,0)”
Here the condition applied to the formula is equal to “0”. Now the
COUNTIF formula will identify and count the numbers with zero
values. There are two zeros in the range. Hence, the result returned
is “2” which is displayed in cell A48.
The Criteria of the COUNTIF
Formula
It is enclosed within double quotes if non-numeric and without
quotes if numeric.
It returns the result only if the values in the cell range satisfy the
given criteria.
It can be supplied with wildcard characters like “*” and “?”. The
question mark matches any one of the characters, and the asterisk
matches any sequence of characters.