Build a 2027 monthly budget with sinking funds in Excel or Google Sheets (SUMIFS by month + target / months left)

2026-12-02来源 dev.toEnglish

Most budgets break in the same three months a year: the month car insurance renews, the month annual subscriptions renew, and December. None of those costs are surprises. They're just irregular, and a budget that only looks at "this month" can't see them coming.

The fix is a sinking fund: for each irregular cost you set a target, a due date, and save a slice every month until the bill lands. This tutorial builds a small 2027 budget that does two things with plain formulas:

  1. Totals your real spending per category per month with SUMIFS on date ranges.
  2. Works out each sinking fund's monthly amount as (target − saved) / months left, and feeds the total back into the budget.

Everything here works in Excel 2010+ and Google Sheets. No macros, no scripts. The example data is made up.

1. The Transactions sheet

Create a sheet called Transactions with three columns:

A B C
1 Date Category Amount
2 03/01/2027 Groceries 82.40
3 05/01/2027 Rent 1150
4 11/01/2027 Transport 46.00

Type real dates in column A (not text), and positive amounts for spending. Add a dropdown on column B so category names always match the budget exactly. In Excel: Data > Data Validation > List; in Sheets: Data > Data validation > Dropdown (from a range). Point it at your category list in the next step.

2. The Budget sheet: months as real dates

Create a sheet called Budget. Put categories in column A starting at A3, and the twelve months across row 1:

  • B1: =DATE(2027,1,1)
  • C1: =EDATE(B1,1), then fill right to M1

Format row 1 with the custom number format mmm so it reads Jan, Feb, Mar. The cells still hold the first day of each month, and that's what makes the next formula simple.

Leave row 2 for labels if you like, and list categories from A3 down: Rent, Groceries, Transport, Utilities, Eating out, and so on.

3. Actual spending per category per month

In B3:

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

Fill it right to M3 and down through your categories.

How it works:

  • Transactions!$B:$B, $A3 keeps only rows for this category.
  • ">="&B$1 keeps dates on or after the first of the month.
  • "<"&EDATE(B$1,1) keeps dates before the first of the next month.

That half-open range (>= start, < next start) is the reliable way to bucket by month. It doesn't care how many days a month has, and it doesn't miss transactions that carry a time of day, which can happen with bank exports where <=31/01/2027 would drop anything after midnight on the 31st.

The mixed references matter: $A3 locks the column so the category stays put when you fill right, and B$1 locks the row so the month stays put when you fill down.

Add a total row under the categories with =SUM(B3:B14) (adjust to your range) and fill right.

4. The Sinking Funds sheet

Create a sheet called Sinking with this layout:

A B C D E F
1 Fund Target Due date Saved so far Months left Monthly
2 Car insurance 840 01/07/2027 0
3 Gifts 600 01/12/2027 0
4 Software renewals 120 01/03/2027 0

Then put the "as of" month in H1. For planning the whole year from January, type =DATE(2027,1,1). Once the year is underway, switch it to the current month:

=EOMONTH(TODAY(),-1)+1 

That returns the first day of the current month.

Months left

In E2:

=IF(A2="", 0, MAX(1, (YEAR(C2)-YEAR($H$1))*12 + MONTH(C2)-MONTH($H$1))) 

This counts whole months from the "as of" month up to, but not including, the due month. A bill due in July, planned from January, gives 6: you save in January through June and the money is ready on 1 July. MAX(1, …) stops a division by zero when you reach the due month or a date has passed.

If you'd rather count the due month itself as a saving month, add +1 inside the MAX.

Monthly amount

In F2:

=IF(A2="", 0, IF(D2>=B2, 0, ROUNDUP((B2-D2)/E2, 0))) 

Fill both formulas down 10–15 rows so you have room for more funds. With the example above and H1 set to January:

  • Car insurance: (840 − 0) / 6 = 140
  • Gifts: 600 / 11 = 54.55, rounded up to 55
  • Software renewals: 120 / 2 = 60

ROUNDUP to whole units keeps you slightly ahead, not slightly short.

Why "target minus saved, divided by months left" beats a fixed amount

A fixed "save 70 a month" plan silently fails the first time you skip a month. This formula recalculates every time you update Saved so far and the "as of" month. Say it's March, you've only managed 140 for the car insurance instead of 280. With H1 on March, months left becomes 4 and the monthly amount becomes (840 − 140) / 4 = 175. The sheet tells you exactly how much to catch up, spread over the months you have left.

Optional status column in G2:

=IF(A2="", "", IF(D2>=B2, "Funded", "Save " & TEXT(F2, "0") & "/mo")) 

5. Feed sinking funds back into the budget

Add a row on Budget called Sinking funds (say row 16). In B16:

=SUMPRODUCT((Sinking!$C$2:$C$16>B$1) * (B$1>=Sinking!$H$1) * Sinking!$F$2:$F$16) 

Fill right to M16. For each month, this adds up the monthly amount of every fund whose due date is still ahead, and only from the "as of" month onwards. With the example data, January and February each plan 255 (140 + 55 + 60), March drops to 195 because the software renewal is due on 1 March, and July drops again once the insurance is paid.

The empty rows are safe because the months-left and monthly formulas return 0 rather than blank text. Text in a SUMPRODUCT multiplication would give #VALUE!.

6. Planned vs actual, and what's left

Below the actuals, add a Planned spending row (say row 18, your planned total for regular categories) and an Income row (row 20, your expected take-home pay per month). Then:

  • Left to spend or save, in row 22: =B20-B18-B16 (income − planned spending − sinking funds), filled right
  • Variance per category: put your planned amounts in a second block and subtract, e.g. =B25-B3

Add conditional formatting to the variance block so negative values turn red. In Excel: Home > Conditional Formatting > Highlight Cells Rules > Less Than 0. In Sheets: Format > Conditional formatting > "Less than" 0.

When the bill actually arrives, record it in Transactions as normal and increase nothing on the Sinking sheet; just reset Saved so far to 0 and move the due date to next year. The bill shows up in the month it was paid, and the money for it was already set aside across the months before.

Common mistakes

  • Dates stored as text. SUMIFS silently returns 0. Check with =ISNUMBER(A2) on the Transactions sheet.
  • Category spelling. "Groceries " with a trailing space won't match. Dropdowns prevent this.
  • Forgetting to move "as of". If H1 stays on January all year, months left never shrinks and the monthly amounts stay too low. Using the EOMONTH(TODAY(),-1)+1 version avoids that.

The finished version

If you'd rather not build all of this yourself, I sell a finished workbook built around the same ideas, called Year Map 2027. It adds a 12-month bill calendar (monthly, quarterly, yearly or custom months), Funded / On track / Short status for up to 15 sinking funds, a month picker with planned vs actual, a net worth tracker and a dashboard. It works in Excel and Google Sheets with no macros: https://najoomi-templates.najoomi.workers.dev/t/year-map-2027/

Launch sale: 40% off with code LAUNCH40 until 19 Dec (applied automatically from the store page).

Disclosure: I run the store that sells Year Map 2027. Every formula above works on its own without it.

原文:https://www.a8q9.cn/en/article/build-a-2027-monthly-budget-with-sinking-funds-in-excel-or-google-sheets-sumifs--29a428.html

相关文章