Best on desktop
The spreadsheet workspace needs more room than this screen offers. Switch to a laptop for the full experience.
You're a marketing analyst pulling a "distinct campaigns per region" metric for tomorrow's ops review. The campaign-execution log at A2:B25 records (Region, Campaign Name) for every send — and the same campaign typically runs multiple times per region across the quarter, so the table has heavy duplication.
You need the count of distinct campaign names for each of the three target regions in D2:D4.
This is a classic "uniques per group" problem. Two acceptable approaches:
COUNTA(UNIQUE(FILTER(...))) — filter to the target region, dedupe, count.SUMPRODUCT(($A$2:$A$25=D2) / COUNTIFS($A$2:$A$25, D2, $B$2:$B$25, $B$2:$B$25)) — for every row in the target region, contribute one over the count of (target region, that campaign) combos. Each unique campaign sums to 1; duplicates split into fractions that recombine to 1.Wrap the legacy version in IFERROR(..., 0) to swallow the #DIV/0! from non-target rows.
Your task:
Graded cells: E2, E3, E4.