A bank prints the same merchant a different way on every line, so a SUMIF that looks for the merchant's name finds nothing. Wildcards let the criterion match the name wherever it sits in the description.
You keep the books for a small design studio, and November's company card statement has just come in. The bank export in A2:C11 has the date, the description the bank prints and the amount, and the same merchant is worded differently from line to line: the Shell station in Leeds, the motorway charger and the forecourt in Harrogate are all Shell, but no two descriptions read the same. The accountant wants fuel and charging coded by supplier. In F3, total the amount spent at the merchant named in F2, and in F4, count how many transactions that was. Both should still work if someone types a different merchant, such as BP, into F2.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Date | Description | Amount | |||
| 2 | 11/2/2026 | CARD PAYMENT SHELL LEEDS 0412 | 68.4 | Merchant | SHELL | |
| 3 | 11/3/2026 | DD ADOBE SYSTEMS | 56.99 | Total spent | ||
| 4 | 11/5/2026 | CONTACTLESS PRET A MANGER | 9.85 | Transactions | ||
| 5 | 11/9/2026 | SHELL RECHARGE M62 J27 | 31.2 | |||
| 6 | 11/11/2026 | CARD PAYMENT BP WETHERBY | 72.15 | |||
| 7 | 11/12/2026 | AMAZON MKTPLACE PMTS | 24.99 | |||
| 8 | 11/16/2026 | CONTACTLESS SHELL HARROGATE | 54.6 | |||
| 9 | 11/19/2026 | CARD PAYMENT TRAINLINE.COM | 88.3 | |||
| 10 | 11/23/2026 | CARD PAYMENT SHELL LEEDS 0412 | 61.75 | |||
| 11 | 11/25/2026 | DD ZOOM.US | 13.99 |
Without wildcards, a SUMIF criterion is an equality test against the whole cell, so SUMIF(B2:B11,F2,C2:C11) asks for rows whose description is exactly SHELL, and there are none. The bank never prints the merchant alone: it adds the payment type in front and the branch or terminal after, and where it puts them changes from line to line. The asterisk is how you say "any text here, or none". "*"&F2&"*" builds the criterion *SHELL*, which matches CARD PAYMENT SHELL LEEDS 0412, SHELL RECHARGE M62 J27 and CONTACTLESS SHELL HARROGATE alike. Both asterisks are needed: SHELL* only matches descriptions that start with the word, which here is the charger alone at 31.20, and *SHELL only matches those that end with it, which is none. The matching ignores case, so shell in F2 works just as well. SUMIF then adds the four Shell amounts, 68.40 + 31.20 + 54.60 + 61.75, for 215.95, and COUNTIF with the same criterion counts the same four rows. Building the criterion with & instead of typing "*SHELL*" into the formula is what makes the cell reusable: type BP into F2 and both cells answer for BP, 72.15 from one transaction. The one thing to watch is how short the name is. A wildcard search finds the letters anywhere, so a two-letter name like BP would also catch any description that happened to contain those letters inside another word. Check a short keyword's count against the statement before you trust its total.