Premium Google Sheets drill · Sheets scenarios
Summarize a pipeline with QUERY
Practice a Google Sheets pipeline summary: QUERY groups stages and sums the amount in each stage.
A1:B6 is a small sales pipeline. The same stage appears more than once, and each row has an amount.
In D1, use QUERY to list each stage and the sum of its amounts. Keep the header row.
Dataset
Starter sheet. Cells marked formula are where the formula goes.
| Row | A | B | C | D | E |
|---|---|---|---|---|---|
| 1 | Stage | Amount | Formula goes in D1. formula | ||
| 2 | New | 100 | |||
| 3 | Open | 40 | |||
| 4 | New | 60 | |||
| 5 | Won | 80 | |||
| 6 | Open | 10 |
Hint
select A, sum(B) group by A returns one row per stage.
Explanation
New is 100 plus 60, Open is 40 plus 10, and Won stays 80. The total column is labeled sum Amount because the source header is Amount.
The interactive sheet and a worked solution are part of Formula Drills Premium. The instructions and starter data on this page are the full problem.