Complete the formula to count how many cells in range A1:A10 contain the number 5.
=COUNTIF(A1:A10, [1])To count cells equal to 5, you can use the number 5 without quotes.
Complete the formula to count cells in B1:B20 that contain text starting with "apple".
=COUNTIF(B1:B20, [1])To count cells starting with "apple", use the wildcard * after the word: "apple*".
Fix the error in the formula to count cells in C1:C15 that are greater than 10.
=COUNTIF(C1:C15, [1])The criteria must be a text string, so use ">10" with quotes.
Fill both blanks to count cells where A1:A10 are "Yes" and B1:B10 are greater than 50.
=COUNTIFS(A1:A10, [1], B1:B10, [2])
COUNTIFS needs criteria as text strings. Use "Yes" and ">50" in quotes.
Fill all three blanks to count cells where D1:D20 start with "A", E1:E20 equal 100, and F1:F20 are less than 50.
=COUNTIFS(D1:D20, [1], E1:E20, [2], F1:F20, [3])
Use "A*" to match text starting with A, "=100" for exact number 100, and "<50" for less than 50, all as text strings.