Basic Functions
Advanced

SUMIFS: total with two conditions

One region and one product at the same time.

Task:

Sales wants coffee sales by region, ignoring tea. In G2 give the total for North coffee and in G3 for South coffee.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

8 rows × 7 columns2 cells you fill in
ABCDEFG
1OrderRegionProductValueRegionCoffee total
2B-201NorthCoffee320North
3B-202NorthTea140South
4B-203SouthCoffee275
5B-204NorthCoffee410
6B-205SouthTea190
7B-206SouthCoffee365
8B-207NorthTea95
What this exercise teachesMay contain the answer

SUMIFS adds a row only when every condition holds, which is the AND you mean. Its argument order differs from SUMIF — sum range first — and that one difference causes most of the mistakes people make with it.