Day 116 · Friday, 27 November 2026

From the archive

Intermediate

Total a Merchant's Card Spend with SUMIF and Wildcards

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.

Task:

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.

The daily challenge is part of Pro

A new exercise every morning, plus every day that came before it — a back catalogue that grows by one a day, whether or not you were here for it.

Every day so far

August 2026

September 2026

October 2026

November 2026

December 2026

4
SolvedOpenProLatest

Recent days

The last 14 days. Today's challenge is free while your streak is alive; Pro opens every past day too.