FxFormula Drills

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.

Starter sheet for this exercise
RowABCDE
1ProductSalesProductTotal
2Pen40PenFormula goes in E2. formula
3Book25
4Pen15
5Lamp60
6Book10

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.

Solve this exercise

Practice this formula

Loading the practice grid…