Level 1Core FunctionsProject, 6 min

A budget that flags overspending

The task

Here's a month of spending against a budget. Build the columns that tell you, at a glance, where the money went over.
  1. What's left in each categoryIn D2, subtract the whole Spent column from the whole Budget column in one go. Math on whole columns goes inside ARRAYFORMULA: =ARRAYFORMULA(B2:B7-C2:C7).
  2. How much of each budget you usedIn E2, divide Spent by Budget for every row, inside ARRAYFORMULA again. The column is formatted as a percent.
  3. Flag the overspendsIn F2, label each row: =ARRAYFORMULA(IF(C2:C7>B2:B7, "Over", "OK")). IF checks a condition and returns one of two answers.
  4. Find the worst offenderIn B9, return the category with the biggest overspend: the most negative number in Left. =XLOOKUP(MIN(D2:D7), D2:D7, A2:A7)

The data

The starting sheet. Cells outlined in green are where your formulas go.

ABCDEF
1CategoryBudgetSpentLeftUsedStatus
2Rent$1,600$1,600
3Groceries$600$684
4Dining out$250$312
5Transport$220$175
6Utilities$180$166
7Fun$200$240
8
9Biggest overspend