COUNTIF counts the number of cells in a range that meet a single condition or criteria.
Click to reveal answer
beginner
How is COUNTIFS different from COUNTIF?
COUNTIFS counts the number of cells that meet multiple conditions across one or more ranges, while COUNTIF only handles one condition.
Click to reveal answer
beginner
Write the formula to count cells in range A1:A10 that are greater than 5.
The formula is =COUNTIF(A1:A10, ">5"). It counts cells with values greater than 5.
Click to reveal answer
intermediate
Explain the syntax of COUNTIFS function.
COUNTIFS syntax: =COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...). You provide pairs of ranges and their conditions.
Click to reveal answer
intermediate
Can COUNTIF and COUNTIFS handle text criteria? Give an example.
Yes. For example, =COUNTIF(B1:B10, "apple") counts cells exactly equal to "apple". You can also use wildcards like "app*" to count cells starting with "app".
Click to reveal answer
What will =COUNTIF(A1:A5, ">10") do?
ACount cells with values less than 10 in A1:A5
BCount cells with values greater than 10 in A1:A5
CCount all cells in A1:A5
DCount cells equal to 10 in A1:A5
✗ Incorrect
COUNTIF counts cells matching the condition. Here, it counts cells with values greater than 10.
Which function counts cells based on multiple conditions?
ACOUNTIFS
BCOUNTIF
CSUMIF
DAVERAGEIF
✗ Incorrect
COUNTIFS allows multiple criteria, COUNTIF only one.
How would you count cells in B1:B10 that contain the text "cat" anywhere inside?
A=COUNTIF(B1:B10, "cat")
B=COUNTIF(B1:B10, "cat*")
C=COUNTIF(B1:B10, "?cat")
D=COUNTIF(B1:B10, "*cat*")
✗ Incorrect
Using wildcards *cat* counts cells containing "cat" anywhere.
What is wrong with this formula? =COUNTIFS(A1:A5, ">5", B1:B10, "<3")
ACOUNTIFS only accepts one range
BCOUNTIFS cannot use > or < operators
CRanges A1:A5 and B1:B10 must be the same size
DCriteria must be numbers, not strings
✗ Incorrect
All criteria ranges in COUNTIFS must be the same size.
If you want to count cells in C1:C10 that are not empty, which formula is correct?
A=COUNTIF(C1:C10, "<>")
B=COUNTIF(C1:C10, "?*")
C=COUNTIF(C1:C10, "*")
D=COUNTIF(C1:C10, "")
✗ Incorrect
"<>" means not equal to empty, so it counts non-empty cells.
Describe how to use COUNTIF to count cells with a single condition. Include an example.
Think about counting cells greater than a number or matching text.
You got /4 concepts.
Explain how COUNTIFS works with multiple conditions and why ranges must be the same size.
Consider how Excel checks each row across ranges.
You got /4 concepts.
Practice
(1/5)
1. What does the Excel function COUNTIF(range, criteria) do?
easy
A. Counts the number of cells in a range that meet a single condition
B. Adds all numbers in a range that meet a condition
C. Counts cells with numbers only, ignoring text
D. Finds the maximum value in a range
Solution
Step 1: Understand the function purpose
The COUNTIF function is designed to count cells that match one specific condition.
Step 2: Compare with other options
B describes adding numbers meeting a condition (like SUMIF), C describes counting numbers only (like COUNT), and D describes finding the maximum (like MAX), none of which is COUNTIF.
Final Answer:
Counts the number of cells in a range that meet a single condition -> Option A
Quick Check:
COUNTIF counts matching cells [OK]
Hint: COUNTIF counts cells matching one condition only [OK]
Common Mistakes:
Confusing COUNTIF with SUMIF
Thinking COUNTIF counts multiple conditions
Assuming COUNTIF only counts numbers
2. Which of the following is the correct syntax for counting cells in range A1:A10 that equal 5 using COUNTIF?
easy
A. =COUNTIF(A1:A10, 5)
B. =COUNTIF(5, A1:A10)
C. =COUNTIF(A1:A10, ">=5")
D. =COUNTIF(A1:A10; 5)
Solution
Step 1: Recall COUNTIF syntax
The correct syntax is COUNTIF(range, criteria). The criteria can be a number without quotes.
Step 2: Evaluate each option
A uses ">=5" which counts cells greater than or equal to 5, not exactly 5; B reverses arguments, which is wrong; C uses 5 directly, which is correct and simpler; D uses semicolon which is locale-dependent and may cause error in some Excel versions.
Final Answer:
=COUNTIF(A1:A10, 5) -> Option A
Quick Check:
COUNTIF(range, criteria) with number criteria [OK]
Hint: Use =COUNTIF(range, number) without quotes for numbers [OK]
Common Mistakes:
Swapping range and criteria arguments
Using semicolon instead of comma in some locales
Using '>=5' instead of '5' for exact match
3. Given the data in cells A1:A5: {3, 5, 5, 7, 5}, what is the result of =COUNTIFS(A1:A5, ">=5", A1:A5, "<7")?
medium
A. 1
B. 2
C. 3
D. 4
Solution
Step 1: Understand the COUNTIFS conditions
COUNTIFS counts cells where values are >=5 AND <7.
Step 2: Check each value in A1:A5
Values: 3 (no), 5 (yes), 5 (yes), 7 (no, equals 7 but <7 fails), 5 (yes). So three 5s qualify, but 7 does not.
Step 3: Confirm the count
Three values are 5, but condition is >=5 and <7, so 5 counts. So count is 3.
Final Answer:
3 -> Option C
Quick Check:
Values between 5 and less than 7 = 3 [OK]
Hint: COUNTIFS counts cells meeting all conditions simultaneously [OK]
Common Mistakes:
Counting values equal to 7 incorrectly
Confusing COUNTIF with COUNTIFS
Misreading the logical AND in COUNTIFS
4. You want to count cells in B1:B10 that are greater than 10 and less than 20. Which formula has an error?
medium
A. =COUNTIFS(B1:B10, ">10", B1:B10, "<20")
B. =COUNTIF(B1:B10, ">10") + COUNTIF(B1:B10, "<20")
C. =COUNTIFS(B1:B10, "<20", B1:B10, ">10")
D. =COUNTIFS(B1:B10, ">10",B1:B10,"<20")
Solution
Step 1: Understand the goal
You want to count cells greater than 10 AND less than 20, meaning both conditions must be true simultaneously.
Step 2: Analyze each formula
A adds two COUNTIF results, which counts cells greater than 10 plus cells less than 20 separately, causing double counting. The other options use COUNTIFS correctly with both conditions combined.
Final Answer:
=COUNTIF(B1:B10, ">10") + COUNTIF(B1:B10, "<20") -> Option B
Hint: Use COUNTIFS for multiple conditions, not sum of COUNTIFs [OK]
Common Mistakes:
Adding COUNTIF results instead of using COUNTIFS
Misunderstanding AND vs OR logic
Using wrong operators in criteria
5. You have a sales table with columns: Region (A2:A10), Sales (B2:B10). Which formula counts sales greater than 1000 in the "East" region?
hard
A. =COUNTIF(A2:A10, "East") + COUNTIF(B2:B10, ">1000")
B. =COUNTIFS(A2:A10, ">1000", B2:B10, "East")
C. =COUNTIF(A2:A10, "East" & B2:B10, ">1000")
D. =COUNTIFS(A2:A10, "East", B2:B10, ">1000")
Solution
Step 1: Identify conditions and ranges
You want to count rows where Region is "East" AND Sales > 1000. Region is in A2:A10, Sales in B2:B10.
Step 2: Match conditions to correct ranges
=COUNTIFS(A2:A10, "East", B2:B10, ">1000") correctly uses COUNTIFS with Region range and criteria "East", and Sales range with ">1000". =COUNTIF(A2:A10, "East") + COUNTIF(B2:B10, ">1000") adds separate COUNTIFs, which is incorrect. =COUNTIF(A2:A10, "East" & B2:B10, ">1000") concatenates ranges incorrectly. =COUNTIFS(A2:A10, ">1000", B2:B10, "East") swaps criteria and ranges incorrectly.
Final Answer:
=COUNTIFS(A2:A10, "East", B2:B10, ">1000") -> Option D
Quick Check:
COUNTIFS matches multiple conditions on correct ranges [OK]
Hint: Use COUNTIFS with each condition and its range paired [OK]
Common Mistakes:
Adding separate COUNTIF results instead of COUNTIFS
Mixing up criteria and ranges
Concatenating ranges incorrectly
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.