Free Excel templates · Personal finance

Expense tracker template

Log every purchase with a date, category and payment method, and get a month-by-month summary for the year with budget warnings and charts.

Beginner SUMIFS EDATE DATE INDEX ROWS IFERROR COUNTIF SUM YEAR MONTH

Download the template

.xlsx, 38 KB · no macros · works in Excel 2016 and later (Windows and Mac), Microsoft 365 and Excel for the web. Built and checked in Excel: 7 calculations verified.

Preview of the Summary sheet

ABCDEFGH
1Expense summary
2Yellow cells are yours to change. Everything else calculates.
3
4Year2026
5
6CategoryBudget / monthJanFebMarAprMayJun
7Rent1,1001,1001,1001,1001,1001,1001,100
8Utilities14096118123111107111
9Groceries450424482397317510449
10Transport160157165152162156163
11Eating out12013711310598120139
12Health60342734312627

The sample data in the file. Replace it with your own.

What is inside

SheetWhat it does
How to useSteps and a link back to this page.
SummarySpending by category and month for the chosen year, totals, monthly average, payment methods and two charts.
ExpensesThe log: one row per purchase in an Excel table.
ListsYour categories with a monthly budget, and your payment methods.

Category and payment-method drop-downs Year selector Red cells when a category goes over its monthly budget Average per month counts only months with spending Charts by category and by month Freeze panes on the log

How to use it

  1. On the Lists sheet, write your categories and a monthly budget for each one. Add your payment methods (card, cash, bank transfer and so on).
  2. On the Expenses sheet, add one row per purchase: date, a short description, category, payment method and amount. Category and payment method are drop-downs.
  3. Type the year you want to see in B4 of the Summary sheet.
  4. Read the grid: each cell is what you spent in that category in that month. A red cell means the category went over its monthly budget.
  5. Look at the payment-method block at the bottom to see how much went by card, cash or transfer.
  6. Keep adding rows to the log all year. The Month column, the summary and the charts follow automatically.

How it works

The category names in the summary are not typed there. They are read from the Lists table one by one, so a new category on the Lists sheet appears in the summary without any editing. ROWS counts 1, 2, 3 as the formula is filled down, and INDEX returns that item from the list; IFERROR leaves a blank once the list runs out.

Formula
=IFERROR(INDEX(tblCategories[Category],ROWS($A$7:A7)),"")
Summary!A7, filled down to A21.

Each month cell adds up the amounts for one category between the first day of the month (row 6) and the first day of the next month. EDATE gives that next month, so the formula works for 28, 30 or 31-day months alike.

Formula
=IF($A7="","",SUMIFS(tblExpenses[Amount],tblExpenses[Category],$A7,tblExpenses[Date],">="&C$6,tblExpenses[Date],"<"&EDATE(C$6,1)))
Summary!C7. The mixed references ($A7 and C$6) let one formula fill the whole grid.
D9fx=IF($A9="","",SUMIFS(tblExpenses[Amount],tblExpenses[Category],$A9,tblExpenses[Date],">="&D$6,tblExpenses[Date],"<"&EDATE(D$6,1)))
ABCDE
6CategoryBudget / monthJanFebMar
7Rent1,1001,1001,1001,100
8Utilities14096118123
9Groceries450424482397
10Transport160157165152

Groceries in February 2026: 482, above the 450 budget, so the cell turns red in the workbook.

Result: 482

The Month column in the log, =DATE(YEAR([@Date]),MONTH([@Date]),1), turns every date into the first of its month. The summary does not need it, but it is handy if you build a PivotTables: summarise thousands of rows in seconds report from the log.

The monthly average divides the year's total by the number of months that have any spending, counted with COUNTIF on the total row. In the sample, the log runs from January to November 2026, so December does not drag the average down.

In the sample year, 22,747 was spent in total; 8,100 of it (35.6%) went on card.

Customise it

  • Add up to 15 categories on the Lists sheet; the summary has room for all of them.
  • Change the budget amounts any time. The red warning compares each month with the budget currently on the Lists sheet.
  • Add a column to the log, for example Shop or Who paid. Type the heading next to the last column and the table extends.
  • For a different view, see How to sum values by month in Excel and How to sum by category in Excel for the formulas used here.

Common questions

Can I keep several years in one file?

Yes. Keep adding rows to the same log and change the year in B4. The formulas only count dates inside the chosen year.

Why is an expense missing from the summary?

Check that its category is spelled exactly as on the Lists sheet (the drop-down prevents typos) and that the date is a real date, not text. A date typed as text is left-aligned and is ignored by SUMIFS.

Should refunds be negative?

Yes. Enter a refund as a negative amount in the same category and it reduces that month's total.

More free templates