FxFormula Drills

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.

Starter sheet for this exercise
RowABCD
1DeptSalarySales payroll
2Sales400Formula goes in D2. formula
3Ops300
4Sales500
5Design450
6Sales250

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.

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.