FxFormula Drills

Premium exercise · Excel conditional functions

SUMIF practice: match a SKU prefix

Practice Excel SUMIF wildcards by totaling every SKU that starts with PEN, using an asterisk in the criteria.

Column A is a SKU and column B is the quantity sold. Pen SKUs all start with PEN.

In D2, use SUMIF with a wildcard so every SKU that begins with PEN is included.

Dataset

Starter sheet. Cells marked formula are where the formula goes.

Starter sheet for this exercise
RowABCD
1SKUQtyPen qty
2PEN-014Formula goes in D2. formula
3BOOK-022
4PEN-096
5LAMP-031

Hint

An asterisk matches any characters after the text you type. PEN* matches PEN-01 and PEN-09.

Explanation

This exercise practices SUMIF in Excel. The formula goes in D2.

PEN* matches PEN-01 and PEN-09 and skips BOOK and LAMP. Their quantities are 4 and 6, so the SUMIF total is 10. The asterisk stands in for the rest of the SKU.

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…