FxFormula Drills

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.

Starter sheet for this exercise
RowABCDE
1StageAmountFormula goes in D1. formula
2New100
3Open40
4New60
5Won80
6Open10

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.

Solve this drill

Practice this formula

Loading the practice grid…

Google Sheets is a trademark of Google LLC. Formula Drills is not affiliated with Google. Excel drills on this site are a separate track.