Day 113 · Tuesday, 24 November 2026
When every order line has a quantity and a unit price, SUMIF cannot add up what a customer spent, because the money only exists once the two are multiplied. SUMPRODUCT multiplies and adds in one step, and comparisons inside it turn into the filter.
You do the books for a small coffee roaster that sells wholesale to cafés. This week's order book is in A2:E10: each line has the customer, the blend, the number of bags and the price per bag, which is lower on bigger orders. There is no line-total column, and the sheet is shared with the roastery floor, so you would rather not add one. In H3, work out how much the customer named in H2 spent this week. In H5, work out how much that same customer spent on the blend named in H4 alone. Both answers should update if someone types a different name into H2 or H4.
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.
The last 14 days. Today's challenge is free while your streak is alive; Pro opens every past day too.