Complete the formula to count cells in range A1:A10 that equal 5.
=COUNTIF(A1:A10, [1])The COUNTIF function needs the criteria as a text string. To count cells equal to 5, use "5" in quotes.
Complete the formula to count cells in B1:B20 that are greater than 10.
=COUNTIF(B1:B20, [1])The criteria must be a text string with the comparison operator and number inside quotes, like ">10".
Fix the error in this COUNTIFS formula to count cells in A1:A10 equal to "Yes" and B1:B10 greater than 5.
=COUNTIFS(A1:A10, [1], B1:B10, [2])
Text criteria like "Yes" must be in quotes. Numeric criteria with comparison operators like ">5" must also be in quotes.
Fill both blanks to count cells in C1:C15 that are not empty and less than 100.
=COUNTIFS(C1:C15, [1], C1:C15, [2])
"<>" means not empty. "<100" counts cells less than 100. Both criteria together count cells not empty and less than 100.
Fill all three blanks to count cells in D1:D20 where text contains "apple" and number in E1:E20 is greater than 50.
=COUNTIFS(D1:D20, [1], E1:E20, [2], E1:E20, [3])
"*apple*" counts cells containing "apple" anywhere. ">50" counts numbers greater than 50. "<>" ensures the number cells are not empty.