About this exercise
A 120-row dataset on one sheet, one answer cell, about 4 minutes. Graded in your browser: the value and the formula behind it, with feedback that names the fix.
How to solve it
- H2
=COUNTIF(D2:D121,"*.edu")
COUNTIF accepts wildcards in text criteria: * stands for any sequence of characters (including none) and ? for exactly one character. "*.edu" therefore matches every address that ends in .edu, whatever comes before, and the comparison ignores case — 38 rows here. Because nothing may follow the pattern, an address ending in .edu.au is not matched, which is exactly the distinction finance needs.
Pitfall 1: "*edu*" matches "edu" anywhere — it returns 45 on this list by also counting .edu.au addresses and domains such as educonsult.com and medu.org. Pitfall 2: "*.edu" also matches a bare value ".edu" or "x.edu" with no @; if the data can contain junk, "*@*.edu" is the stricter pattern. Pitfall 3: to match a literal asterisk or question mark, escape it with a tilde ("~*"); and wildcards only work on text — a numeric column needs its own criteria (">500"). Alternatives: SUMPRODUCT(--(RIGHT(D2:D121,4)=".edu")) tests the last four characters without wildcards; COUNTIFS(D2:D121,"*.edu") is the same count with room for a second condition (role, country). In Excel 365, =ROWS(FILTER(D2:D121,RIGHT(D2:D121,4)=".edu")) lists and counts in one go; COUNTIF remains the fastest and most portable version.
Other ways that work
- =COUNTIF(D2:D121,"*@*.edu") — stricter: requires an @ before the domain
- =COUNTIFS(D2:D121,"*.edu") — the same count written with COUNTIFS (not accepted here, because this task asks for COUNTIF)
- =SUMPRODUCT(--(RIGHT(D2:D121,4)=".edu")) — compares the last four characters instead of using a wildcard
Common mistakes
Writing the criterion as "*edu*" or "edu": the first over-counts (45 instead of 38) because it also matches .edu.au and company names containing "edu"; the second counts nothing, because COUNTIF without wildcards needs the whole cell to equal the text.
How we grade
Any formula that produces the right result is accepted, unless the task names a function: then another function earns half credit. We compare values with a small tolerance and ignore case and spaces in text. A correct number typed by hand instead of a formula earns half credit. Multi-cell tasks earn full credit at 100% of cells, half credit from 50%. Where it matters, we also change an input cell on a copy of your sheet and check that your formula follows.
Answers computed with Excel 365 rules and checked in our grading engine on November 16, 2026. Author: GridBelt team.