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.
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | SKU | Qty | Pen qty | |
| 2 | PEN-01 | 4 | Formula goes in D2. formula | |
| 3 | BOOK-02 | 2 | ||
| 4 | PEN-09 | 6 | ||
| 5 | LAMP-03 | 1 |
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.