ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Projects
  3. Track Expenses by Category in Excel

Track Expenses by Category in Excel

By ExcelReady Team·Updated October 30, 2026·5 min read

The short answer

To make an expense tracker in Excel, log one expense per row with its date, description, category and amount. Then total each category with SUMIF, for example =SUMIF(C:C,"Travel",E:E), and add a month condition with SUMIFS. A pivot table gives the same category and month totals in a few clicks, and both update when you add expenses.

Key takeaways

  • One row per expense, with a category from a fixed list, is what makes every total possible.
  • =SUMIF(category range, category, amount range) totals one category; lock the ranges and fill down for all of them.
  • SUMIFS with two date conditions splits the totals by month without a helper column.
  • An Excel table (Ctrl+T) grows with each new row, so formulas and pivots never miss an expense.
  • Check that the category totals add up to the grand total before you share the numbers.
On this page+
  1. Set up the expense log
  2. Turn the log into a table and add a category list
  3. Total expenses by category with SUMIF
  4. Total expenses by month with SUMIFS
  5. Summarise expenses with a pivot table
  6. Ways to extend the expense tracker
  7. Practise it

An expense tracker in Excel is a simple log, one row per expense, plus a summary that totals the log by category and month. SUMIF does the category totals, SUMIFS adds the month, and a pivot table can do both without formulas. This guide builds a tracker for work expenses that you can also use for a household, a project or a small business.

Set up the expense log#

The log is the heart of the tracker. Each expense gets one row, and each detail gets its own column.

ABCDE
1DateDescriptionCategoryPaid withAmount
23/3/2025Train to client siteTravelCard42.50
33/4/2025Printer inkSuppliesCard36.99
43/6/2025Lunch with clientMealsCash58.20
53/10/2025Software subscriptionSoftwareCard29.00
63/12/2025Taxi to airportTravelCard64.80
73/14/2025Hotel, 2 nightsTravelCard312.00
83/18/2025Team coffeeMealsCash23.40
93/21/2025Notebooks and pensSuppliesCash18.75
104/2/2025Train to client siteTravelCard42.50
114/7/2025Software subscriptionSoftwareCard29.00

Three rules keep the log useful:

  • Real dates, not text like "March 3", so you can total by month.
  • Numbers only in Amount, with no currency symbols typed in. Format the column as currency instead with Ctrl+Shift+$ (Mac: Control+Shift+$).
  • No blank rows, subtotals or notes inside the log.

Turn the log into a table and add a category list#

Click any cell in the log and press Ctrl+T (Mac: ⌘T), check My table has headers and click OK. An Excel table grows by itself when you type in the row below it, so new expenses are included in every formula and pivot that uses the table.

Categories must be spelled the same way every time, because SUMIF matches the text. "Travel" and "Travel " (with a space) are different to Excel. Add a drop-down:

  1. Type your categories on a spare sheet, one per cell.
  2. Select the Category column of the log.
  3. Choose Data > Data Validation, set Allow to List and select your category cells as the Source.

Our guide to creating a drop-down list in Excel covers the details.

Total expenses by category with SUMIF#

SUMIF adds the numbers in rows that match one condition. List the categories in G2:G5 and, in H2, write:

Excel formula
=SUMIF($C$2:$C$500,G2,$E$2:$E$500)

SUMIF checks the Category column, keeps the rows that match the name in G2, and adds their amounts. The ranges are locked with $ and run past the end of the log, so they keep working as the log grows. Fill down to H5.

CategoryTotalShare
Travel461.8070.3%
Meals81.6012.4%
Software58.008.8%
Supplies55.748.5%
Total657.14100.0%

The share column divides each total by the grand total in H6 (=SUM(H2:H5)), locked with $: =H2/$H$6. If the log is an Excel table named Expenses, the formula can use the column names instead: =SUMIF(Expenses[Category],G2,Expenses[Amount]). See how to use SUMIF in Excel and the SUMIF function guide for more criteria, such as amounts over 100.

Check the totals. =SUM(H2:H5)=SUM(E2:E500) should show TRUE. If it shows FALSE, an expense has a category that isn't on your summary list.

Total expenses by month with SUMIFS#

To split each category by month, add date conditions. Put the first day of each month across the top of the summary: I1 holds 3/1/2025 and J1 holds 4/1/2025. In I2:

Excel formula
=SUMIFS($E$2:$E$500,$C$2:$C$500,$G2,$A$2:$A$500,">="&I$1,$A$2:$A$500,"<"&EDATE(I$1,1))

That reads: add the amounts where the category is G2, the date is on or after the first of the month, and the date is before the first of the next month. EDATE adds one month to the date in I1. Fill the formula across and down.

CategoryMar 2025Apr 2025
Travel419.3042.50
Meals81.600.00
Software29.0029.00
Supplies55.740.00

The mixed references are what make one formula fill the whole grid: $G2 always reads column G, and I$1 always reads row 1. Payment method works the same way: =SUMIF($D$2:$D$500,"Cash",$E$2:$E$500) gives 100.35 paid in cash.

Summarise expenses with a pivot table#

A pivot table builds the same category-by-month summary in a few clicks.

  1. Click any cell in the log and choose Insert > PivotTable, then OK.
  2. Drag Category to Rows and Amount to Values.
  3. Drag Date to Columns. Recent versions of Excel group dates by month automatically. If yours shows single dates, right-click a date in the pivot, choose Group and select Months (and Years if the log spans more than one year).
  4. Sort the biggest category to the top: right-click a total and choose Sort > Sort Largest to Smallest.

Click Refresh (on the PivotTable Analyze tab) after you add expenses. Pivot table vs SUMIFS explains when each approach fits better.

Ways to extend the expense tracker#

  • Receipt column: a Yes/No drop-down, plus =COUNTIF(F2:F500,"No") to count missing receipts.
  • Monthly limit per category: put a limit next to each category and flag the totals that go over with conditional formatting.
  • Chart: select the category summary and choose Insert > Recommended Charts for a bar chart of where the money goes.
  • Biggest expense: =MAX(E2:E500) finds it; =XLOOKUP(MAX(E2:E500),E2:E500,B2:B500) returns its description.

Tracking and summarising costs like this is a core task in Excel skills for finance jobs, and the same SUMIF summaries show up in Excel skills for sales and operations roles. If you also pay people for their time, the next projects are a sales commission calculator and an overtime hours sheet.

Practise it#

Do the exercise on this page to total one category with a locked SUMIF. Then practise SUMIF in a live spreadsheet, with text, number and cell criteria, and build the pivot version in the first pivot tables lesson.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

In F2, total the expenses for the category in E2 (Travel). Use SUMIF on the Category column B2:B11 and the Amount column C2:C11, and lock both ranges with $ so the formula could be filled down for the other categories.

fx
ABCDEFG
1
Date
Category
Amount
Category
Total
2
45719
Travel
42.5
Travel
3
45720
Supplies
36.99
Meals
4
45722
Meals
58.2
Supplies
5
45726
Software
29
Software
6
45728
Travel
64.8
7
45730
Travel
312
8
45734
Meals
23.4
9
45737
Supplies
18.75
10
45749
Travel
42.5
11
45754
Software
29
12
13
14

Tip: SUMIF needs the range to check ($B$2:$B$11), what to match (E2) and the numbers to add ($C$2:$C$11).

Practise this in a lesson

LessonSUMIFAdd up only the numbers that meet a condition, with and without a separate sum range.LessonPivot tables 1Build your first PivotTable on a new sheet: total sales by region, split them by product, then switch the summary from Sum to Count and Average and read the answer off the pivot.Function guideSUMIFAdd up values that meet one condition with SUMIF. Totals by category, person or amount, the argument-order trap, and a live exercise.

Frequently asked questions

What columns should an expense tracker have?

+

Date, description, category and amount are the core. Add payment method, receipt (yes/no) or project if you need to report on them. Keep each detail in its own column so you can total and filter by it.

How do I total expenses by category in Excel?

+

List the categories in a summary area and use SUMIF next to each one: =SUMIF($C$2:$C$500,G2,$E$2:$E$500). The locked ranges stay fixed as you fill down, and G2 moves to each category name.

How do I total expenses by month?

+

Use SUMIFS with the date column twice: on or after the first day of the month, and before the first day of the next month. A pivot table with the dates grouped by month does the same with no formulas.

What is the difference between an expense tracker and a budget?

+

An expense tracker records what you actually spent. A budget compares that spending with a plan. The category totals from a tracker are often the Actual column of a budget.

Sources

  • SUMIF function - Microsoft Support
  • SUMIFS function - Microsoft Support
  • Create a PivotTable to analyze worksheet data - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Set up the expense log
  2. Turn the log into a table and add a category list
  3. Total expenses by category with SUMIF
  4. Total expenses by month with SUMIFS
  5. Summarise expenses with a pivot table
  6. Ways to extend the expense tracker
  7. Practise it

Keep reading

Projects· 7 min read

Build a Sales Commission Calculator in Excel

To build a commission calculator in Excel, put each rep's sales in a column and the rate in a cell, then multiply. For tiered rates, either use IFS with the highest tier first, or list the tiers in a sorted table and use VLOOKUP with TRUE to find each rate. Multiply sales by the rate, and use MIN to apply any cap.

Projects· 6 min read

Calculate Hours Worked and Overtime in Excel

To calculate overtime in Excel, first get hours worked: =(End-Start)*24 turns a time difference into decimal hours. Total the week with SUM, then use =MAX(0,Total-40) or =IF(Total>40,Total-40,0) for overtime hours. Pay is regular hours times the rate plus overtime hours times the rate times 1.5, rounded to cents with ROUND.

Tests & careers· 6 min read

Excel Skills for Finance and Accounting Jobs

The key Excel skills for finance jobs are absolute ($) references for rates and totals, ROUND for real rounding rather than display formatting, SUMIFS for totals by account and period, pivot tables for summaries, percent change and % of total, lookups, and simple checks that prove a report adds up. Accuracy matters more than speed.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free