About this exercise
A 150-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
=SUMIF($C$2:$C$151,G2,$E$2:$E$151)
SUMIF(range, criterion, sum_range) looks down the first range, and wherever a cell matches the criterion it adds the cell in the same row of the sum range. Here the region column is tested against the label in G2 and the amounts in E2:E151 are added, so one formula filled down gives all four regional totals. The $ signs keep both ranges fixed while the criterion cell moves from G2 to G5.
Pitfall 1: filling =SUMIF(C2:C151,G2,E2:E151) down without $ shifts both ranges by a row per copy; the totals look plausible but no longer add up to the grand total — always reconcile the block against SUM(E2:E151). Pitfall 2: a sum range of a different size or offset from the test range (C2:C151 against E3:E152) silently adds the wrong rows; keep both ranges aligned row for row. Pitfall 3: "North " with a trailing space or "north-east" in the export will not match "North"; SUMIF matching is case-insensitive but otherwise exact unless you use wildcards ("North*"). Alternatives: SUMIFS($E$2:$E$151,$C$2:$C$151,G2) puts the sum range first and scales to more conditions (region and product, two exercises on); SUMPRODUCT(($C$2:$C$151=G2)*$E$2:$E$151) is the array form; a pivot table gives the same four numbers but needs a manual refresh after each export. Reporting tip: add =H2/SUM($H$2:$H$5) next to the block for each region's share — the percentage exercise in the Basics track.
Other ways that work
- =SUMIFS($E$2:$E$151,$C$2:$C$151,G2) — SUMIFS with one condition; note the sum range comes first (not accepted here, because this task asks for SUMIF)
- =SUMPRODUCT(($C$2:$C$151=G2)*$E$2:$E$151) — array form
- =SUMIF(C:C,G2,E:E) — whole-column references; acceptable while the columns hold nothing else
Common mistakes
Filling =SUMIF(C2:C151,G2,E2:E151) down without locking the ranges: H3 tests C3:C152 and adds E3:E152, so the second to fourth totals drift and the block no longer reconciles with the grand total.
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.