About this exercise
A 200-row dataset on one sheet, one answer cell, about 5 minutes. Graded in your browser: the value and the formula behind it, with feedback that names the fix.
How to solve it
- H2
=COUNTIF($D$2:$D$201,G2)
COUNTIF(range, criterion) counts the cells in the range that match the criterion. With the range locked as $D$2:$D$201 and the criterion pointing at the label in column G, one formula filled down produces all four counts, and the board updates when the export is refreshed. Text criteria are matched case-insensitively, so "delivered" would count the same rows as "Delivered".
Pitfall 1: filling =COUNTIF(D2:D201,G2) down without $ shifts the range to D3:D202, D4:D203 … — the counts drift by a row each time and the totals no longer add up to 200. Pitfall 2: typing the status into the formula (=COUNTIF($D$2:$D$201,"Delivered")) works but must be edited in four places and breaks the fill-down; referencing G2 keeps the board data-driven. Pitfall 3: exports with trailing spaces or "Canceled" vs "Cancelled" create silent misses — a quick SUM of the counts against the row count catches them. Alternatives: COUNTIFS($D$2:$D$201,G2) is COUNTIF with room for more conditions (status and month, next exercise); SUMPRODUCT(($D$2:$D$201=G2)*1) is the array form; in Excel 365, =COUNTIF($D$2:$D$201,G2:G5) spills all four counts from one cell. Whole-column references (D:D) are acceptable here because column D holds only statuses and a header; avoid them inside SUMPRODUCT, which would evaluate a million rows.
Other ways that work
- =COUNTIFS($D$2:$D$201,G2) — same count with the multi-criteria function
- =SUMPRODUCT(($D$2:$D$201=G2)*1) — array-style count without COUNTIF (not accepted here, because this task asks for COUNTIF)
- =COUNTIF(D:D,G2) — whole-column reference; fine while column D holds nothing but statuses
Common mistakes
Filling =COUNTIF(D2:D201,G2) down without locking the range: H3 counts D3:D202, H4 counts D4:D203, and the four counts no longer add up to 200.
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.