Premium Google Sheets drill · Sheets scenarios
Sum Sales pay with named ranges
Practice a Google Sheets payroll total that filters the Salary named range to rows where Dept is Sales.
Dept is the name for A2:A6 and Salary is the name for B2:B6. FILTER can take those names instead of cell addresses.
In D2, sum the Salary rows whose Dept is Sales.
Dataset
Starter sheet. Cells marked formula are where the formula goes.
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Dept | Salary | Sales payroll | |
| 2 | Sales | 400 | Formula goes in D2. formula | |
| 3 | Ops | 300 | ||
| 4 | Sales | 500 | ||
| 5 | Design | 450 | ||
| 6 | Sales | 250 |
Hint
FILTER(Salary, Dept="Sales") keeps the three Sales amounts.
Explanation
Sales pay is 400, 500, and 250. FILTER uses the Dept name to choose those rows, and SUM adds them to 1150. Ops and Design stay out.
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.