Premium exercise · Excel conditional functions
SUMIF practice: total one product
Practice Excel SUMIF by totaling a single product from a short sales list, with instant formula feedback.
Column A is the product and column B is the sales amount. D2 names the product to total.
In E2, write a SUMIF formula that adds only the rows for the product in D2.
Dataset
Starter sheet. Cells marked formula are where the formula goes.
| Row | A | B | C | D | E |
|---|---|---|---|---|---|
| 1 | Product | Sales | Product | Total | |
| 2 | Pen | 40 | Pen | Formula goes in E2. formula | |
| 3 | Book | 25 | |||
| 4 | Pen | 15 | |||
| 5 | Lamp | 60 | |||
| 6 | Book | 10 |
Hint
SUMIF takes the range to test, the criteria, and the range to add.
Explanation
This exercise practices SUMIF in Excel. The formula goes in E2.
SUMIF adds B2:B6 where A2:A6 matches D2. Pen is 40 and 15, so the total is 55. Pointing the criteria at D2 keeps the formula easy to reuse.
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.