ludus

Regional Total

ld-0004 · 1 › █░░░░░░░░░ · aggregation

Your client keeps a running sales log: one row per sale, with the region it came from and the amount. They want a single number — the total sales for one particular region, named in the Target region cell.

Regions repeat throughout the log, and the log isn't sorted. Produce the total for the target region.

Work on it

  1. Make a copy of the template — it becomes your private sheet.
  2. Solve it however you like — helper columns and extra tabs are fair game. The one rule: the grader swaps INPUT for other datasets, so never put your own content inside INPUT.
  3. Check yourself against the expected sample output shown in your copy (and below).
  4. Submit below — Share → "anyone with the link, Viewer", paste the link. Your sheet is graded against 3 hidden datasets, so hardcoded answers won't survive.

Sample

Input (Input!B2:E32)

RegionAmountTarget region
North120West
South85
West40
North60
West155
South20
West5
North310

Expected output (Answer!B3:B3)

Total
200