Yearly Budget Summary: Monthly Income, Expenses and an Average That Skips Empty Months

A transaction list tells you what happened. A year overview tells you whether it's working: twelve rows of income, expenses and balance, a total, and an average month. The average is the number people get wrong most often. In October, dividing by 12 counts November and December as zero months and makes your typical month look far worse than it is.

This page builds the year sheet from a plain transaction list, using SUMIFS with date ranges, so it works the same in Google Sheets, LibreOffice Calc and Excel.

The layout these formulas assume

A Transactions sheet, one row per transaction, headers in row 1:

Column Holds
A Date (a real date)
C Type: Income or Expense
E Amount (refunds as negative expenses)

A Year sheet with the year in B1, month numbers 1 to 12 in A4:A15, and Income, Expenses and Balance in columns B, C and D.

Checklist

☐ 1. Sum each month between its first day and the next month's first day. Income for the month in A4:

=SUMIFS(Transactions!$E$2:$E$400, Transactions!$C$2:$C$400, "Income",
        Transactions!$A$2:$A$400, ">="&DATE($B$1, A4, 1),
        Transactions!$A$2:$A$400, "<"&DATE($B$1, A4+1, 1))

Expenses are the same with "Expense". Balance is =B4-C4. Fill all three down to row 15. For December, DATE(year, 13, 1) becomes 1 January of the next year (Google's DATE help documents this rollover), so the same formula works for every row.

☐ 2. Don't sum by MONTH() alone. A formula like SUMPRODUCT((MONTH(A2:A400)=1)*E2:E400) adds every January in the list, from every year. Once your sheet runs past twelve months, last year's numbers leak into this year's rows. The date-range version in step 1 can't do that, because the year is part of the range.

☐ 3. Total the year from the twelve rows. In row 16:

=SUM(B4:B15)

Fill it across Income, Expenses and Balance. Cross-check once: total income here should equal a single SUMIFS over the whole year (">="&DATE($B$1,1,1) and "<"&DATE($B$1+1,1,1)). If it doesn't, some dates are stored as text or fall outside the year.

☐ 4. Average only the months with activity. Count a month as active when it has any income or any expense, then divide the yearly balance by that count:

=IFERROR(D16 / SUMPRODUCT((((B4:B15<>0) + (C4:C15<>0)) > 0) * 1), "")

The inner part gives 1 for each month with income or expenses and 0 otherwise. IFERROR shows a blank for a brand-new year with no data.

Here is why the two shortcuts give different answers. Take a year with January +1,400, February +1,850, March 0 (income 500, expenses 500), December -100, and nothing else:

Formula Result Problem
=AVERAGE(D4:D15) 262.50 Divides by 12, including eight empty months
=AVERAGEIF(D4:D15, "<>0") 1,050.00 Drops March, a real month that broke even
The formula in this step 787.50 3,150 over 4 active months

AVERAGEIF on non-zero balances looks right until you have a month that breaks even. Testing income and expenses separately avoids it.

☐ 5. Prefer a visible helper column if SUMPRODUCT feels opaque. In G4, filled down:

=IF(OR(B4<>0, C4<>0), 1, 0)

Then =IFERROR(AVERAGEIFS(D4:D15, G4:G15, 1), "") gives the same 787.50. The helper column also makes it easy to see which months were counted.

☐ 6. Add a running balance to see the year build up. In E4, filled down:

=SUM($D$4:D4)

The first reference is locked and the second moves, so each row adds everything up to that month. The last row equals the yearly balance.

☐ 7. Add a savings rate if you track one.

=IFERROR(D16/B16, "")

Format it as a percentage. It is the share of the year's income you didn't spend.

☐ 8. Catch rows that are counted nowhere. A transaction with no Type is neither income nor expense, so it vanishes from every row. Count them for the year:

=COUNTIFS(Transactions!$A$2:$A$400, ">="&DATE($B$1, 1, 1),
          Transactions!$A$2:$A$400, "<"&DATE($B$1+1, 1, 1),
          Transactions!$C$2:$C$400, "")

Anything above 0 needs a Type.

☐ 9. Label months with dates, not typed text. =TEXT(DATE($B$1, A4, 1), "mmm") gives Jan, Feb and so on. Note: the format codes and month names follow your spreadsheet's locale, so in some languages the code letters differ. Typing the twelve labels by hand is a safe fallback.

Quick diagnosis

Symptom Likely cause Step
January far too high MONTH() summing several years 2
Average monthly balance looks too low Dividing by 12 4
Average skips a real month AVERAGEIF on non-zero balances 4
Year total doesn't match the transaction list Text dates, or rows without a Type 3, 8
December only counts the 1st End date written as <=DATE(year,12,1) instead of <DATE(year,13,1) 1

A ready-made version

If you want this without building it, the Monthly Budget & Spending Tracker ($9) is one .xlsx file for Google Sheets and LibreOffice Calc. According to its product page, its Year view (pick the year) shows income, expenses and balance for each month, yearly totals, the average monthly balance over months with activity, and an income-vs-expenses chart. A Month view shows each category's budget, spent and left with an "Over budget" flag, and refunds are entered as negative amounts. A row with no Type selected is not counted as income or expense. Its listed limits: formulas tested in LibreOffice Calc and import-tested in Google Sheets, not tested in Microsoft Excel; room for 400 transaction rows; and it was built with AI assistance. There's also a free Monthly Budget & Spending Tracker Lite, but it has the Month view only: no Year view (the part this page builds), and no refunds as negative amounts.

Sources

Questions this page answers: