Monthly Budget in Google Sheets: Planned vs Actual by Category (SUMIFS)

Quick answer: put the month’s first day in B1, then for each category use =SUMIFS(Transactions!D:D, Transactions!C:C, A4, Transactions!A:A, ">="&$B$1, Transactions!A:A, "<"&EDATE($B$1,1)). It adds up every transaction in that category for that month only. Planned minus actual gives you what’s left.

The setup

Two tabs. Transactions is where you log spending: Date in column A, Description in B, Category in C, Amount in D. Budget holds one row per category with the amount you planned.

Date Description Category Amount
2027-01-03 Rent Housing 1,200.00
2027-01-05 Supermarket Groceries 86.40
2027-01-12 Supermarket Groceries 112.15
2027-01-14 Bus pass Transport 65.00
2027-01-20 Cinema Fun 28.00
2027-01-26 Supermarket Groceries 94.30
2027-01-29 Dinner out Fun 74.50
2027-02-03 Rent Housing 1,200.00
2027-02-06 Supermarket Groceries 101.20

Actual spending per category, for one month

On the Budget tab, type 2027-01-01 in B1. Categories go in A4:A7 and planned amounts in B4:B7. In C4:

=SUMIFS(Transactions!$D:$D, Transactions!$C:$C, A4,
        Transactions!$A:$A, ">="&$B$1,
        Transactions!$A:$A, "<"&EDATE($B$1,1))

Copy it down. The two date conditions mean “on or after January 1” and “before February 1”, so the February rows are ignored. EDATE($B$1,1) is one month after B1, so this works for every month, including February and leap years.

Then D4 is =B4-C4 (left) and E4 is =IF(B4=0,"",C4/B4) (% used, format as percent).

Category Planned Actual Left % used
Housing 1,200.00 1,200.00 0.00 100%
Groceries 280.00 292.85 −12.85 105%
Transport 80.00 65.00 15.00 81%
Fun 90.00 102.50 −12.50 114%
Total 1,650.00 1,660.35 −10.35

Change B1 to 2027-02-01 and the Actual column switches to February (Housing 1,200.00, Groceries 101.20).

Count and highlight overspent categories

=COUNTIF(D4:D7,"<0") returns 2 here (Groceries and Fun). To turn those rows red: select A4:E7, Format > Conditional formatting, choose “Custom formula is” and enter =$D4<0. The $ before D keeps every column in the row checking the Left value.

Common problems

  • Actual shows 0. Your dates are probably text. Check with =ISNUMBER(Transactions!A2). If it says FALSE, use Data > Split text to columns or retype them as dates.
  • A category is missing money. The category name must match exactly. “Groceries ” with a trailing space is a different category. A dropdown (Data > Data validation, list from a range) on the Category column prevents this.
  • Refunds. Enter them as negative amounts in the same category. SUMIFS nets them out.

Skip the setup

If you’d rather start with all of this already built, the 2027 Budget Planner ($12) has these formulas plus a month picker, a year-at-a-glance tab, savings goals and a debt payoff date. It’s our own template, so we earn money if you buy it (see the disclosure).

Next step: once your monthly sheet works, roll the 12 months into one view with the 2027 year-at-a-glance budget grid (monthly and yearly savings rate).

See every template side by side on the Templates page.


Formulas checked on the sample data above. Written with help from AI (Claude).