How to Use SUMIFS for Expense Reports (With Examples)

Short answer: SUMIFS adds up numbers that meet one or more conditions. For an expense report, the pattern is:

=SUMIFS(amount_column, category_column, "Software")

That returns the total of every line where the category is Software. Add more pairs of range, criteria to narrow it down by month, payment method or vendor.

This tutorial walks through seven real expense report examples, builds a monthly summary by category, and fixes the errors that trip most people up. Download the free practice file and follow along: every formula below is in it.

The Example Data

The practice file has 15 expense lines from January to March. The columns are:

Column Holds Example
A Date Jan 5, 2026
B Vendor Adobe
C Category Software
D Paid by Company card
E Amount 59.99
Expense data in a spreadsheet with date, vendor, category, paid by and amount columns, next to seven SUMIFS examples and their results

How SUMIFS Works

=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
  • sum_range is the column you want to add, here the Amount column.
  • criteria_range1 is the first column to check, such as Category.
  • criteria1 is what it must match, such as “Software”.
  • You can add up to 127 more range and criteria pairs. A line is only added when all conditions are true.

The order matters: unlike SUMIF, SUMIFS puts the sum range first. That is the single most common mistake when people switch between the two.

7 SUMIFS Examples for Expense Reports

In the examples, E5:E19 is the Amount column, C5:C19 is Category, D5:D19 is Paid by, B5:B19 is Vendor and A5:A19 is Date. In your own file, lock the ranges with $ signs so you can copy formulas.

1. Total for one category

=SUMIFS(E5:E19,C5:C19,"Software")

Result: 179.97. Put the category in a cell (H5) and use =SUMIFS(E5:E19,C5:C19,H5) instead, so you can change it without editing the formula.

2. Category and payment method

=SUMIFS(E5:E19,C5:C19,"Marketing",D5:D19,"Company card")

Only lines that are Marketing and paid by company card. Useful when you need to know what to reconcile against the card statement.

3. One category in one month

=SUMIFS(E5:E19,C5:C19,"Fuel",A5:A19,">="&DATE(2026,2,1),A5:A19,"<"&DATE(2026,3,1))

Result: 58.90, the February fuel total. Use the same date column twice: once for “on or after the 1st” and once for “before the 1st of next month”. This works for months of any length and avoids end-of-month mistakes.

4. Everything over an amount

=SUMIFS(E5:E19,E5:E19,">"&100)

Result: 1,017.00. The sum range and the criteria range can be the same column. Join the operator and the number with & when the number sits in a cell.

5. Vendor name contains a word

=SUMIFS(E5:E19,B5:B19,"*Ads*")

Result: 705.00, which is Google Ads plus Meta Ads. The asterisk * matches any characters; a question mark ? matches exactly one.

6. Everything except one category

=SUMIFS(E5:E19,C5:C19,"<>Travel")

Result: 1,236.62. <> means “not equal to”.

7. Count the lines instead of adding them

=COUNTIFS(C5:C19,"Office supplies")

Result: 3. COUNTIFS takes the same criteria pairs without a sum range, so it is handy for “how many receipts” questions.

Build a Monthly Summary by Category

The most useful thing SUMIFS does for an expense report is a summary grid: categories down the side, months across the top.

  1. In a new sheet, type the categories in column A (A5 down).
  2. In B4, C4 and D4, type the first day of each month (1/1/2026, 2/1/2026, 3/1/2026) and format them as “mmm yyyy”.
  3. In B5, enter:
=SUMIFS(Expenses!$E$5:$E$19,Expenses!$C$5:$C$19,$A5,
  Expenses!$A$5:$A$19,">="&B$4,
  Expenses!$A$5:$A$19,"<"&DATE(YEAR(B$4),MONTH(B$4)+1,1))
  1. Copy it across and down. The $ signs keep the data ranges fixed, keep the category column fixed ($A5) and keep the month row fixed (B$4).
  2. Add a total row and column with SUM, then check that the grand total equals the total of the Amount column. If it does not, some lines have a category or date the grid does not cover.
Monthly expense summary grid with categories down the side, January to March across the top, totals, and a check that ties to the data

This is the same approach used in our small business expense tracker, which builds the full 12-month version for you.

When SUMIFS Is Not Working: Common Errors

#VALUE! error. The ranges are different sizes, for example E5:E19 and C5:C20. Every range in a SUMIFS must have the same number of rows.

Result is 0 but there should be a total. Usually one of three things:

  • The amounts are stored as text (often after pasting from a bank statement). They are left-aligned and may show a small green triangle. Select the column, use Data > Text to Columns > Finish, or multiply by 1.
  • The criteria has an extra space, for example “Software ” in the data. Use =TRIM() to clean the column, or match with "*Software*".
  • Dates are text, not real dates. Date criteria will not match text dates. Check with =ISNUMBER(A5); a real date returns TRUE.

Wrong total after adding rows. If new expenses are added below the range, the formula does not see them. Either use a range larger than you need (such as rows 5 to 1000), or convert the data to a table (Insert > Table) so the ranges grow automatically.

Using SUMIF arguments in SUMIFS. In SUMIF the sum range is last; in SUMIFS it is first. Mixing them up gives wrong totals without an error message.

Criteria with dates or numbers not matching. Write operators inside quotes and join the value with &: ">="&DATE(2026,2,1), not >=DATE(2026,2,1).

SUMIFS in Google Sheets

Every formula in this tutorial works the same way in Google Sheets. If you prefer, Google Sheets also has QUERY and pivot tables for summaries, but SUMIFS has the advantage that the same file works in both programs.

Download the Practice File

  • File: sheetforma-sumifs-practice.xlsx
  • Contains: the expense data, all seven examples with their results, and the monthly summary grid
  • Format: .xlsx, no macros; works in Excel 2016 or later, Microsoft 365, Google Sheets and LibreOffice
  • Price: Free, no sign-up

From my own bookkeeping work: the first thing I build for almost every new small business client is a SUMIFS summary like this one. It turns a messy list of transactions into a one-page view they can actually read, and it shows straight away when a category has been used inconsistently, such as “Software” one month and “Subscriptions” the next.

This tutorial is general information. See our Disclaimer.

Frequently Asked Questions

What is the difference between SUMIF and SUMIFS?

SUMIF handles one condition and puts the sum range last. SUMIFS handles one or more conditions and puts the sum range first. SUMIFS can do everything SUMIF does, so many people use only SUMIFS.

Can SUMIFS use OR logic?

Not directly; all conditions must be true. For “Fuel or Travel”, add two SUMIFS together: =SUMIFS(E:E,C:C,"Fuel")+SUMIFS(E:E,C:C,"Travel").

How do I use SUMIFS with a date range?

Use the date column twice with two criteria: ">="&start_date and "<"&end_date. Using “less than the next day” is safer than “less than or equal to the last day” if your dates contain times.

Does SUMIFS work with blank cells?

Yes. Use "=" to match blank cells and "<>" to match cells that are not blank, for example to total lines with no category yet.

Why does my SUMIFS return 0?

Most often the numbers or dates are stored as text, or the criteria has extra spaces. See the troubleshooting section above.

Can I use SUMIFS across different sheets?

Yes. Refer to the other sheet in each range, for example Expenses!E5:E19. All ranges must still be the same size.

Related Templates and Guides

New templates for invoicing, cash flow, budgets and reports are added every week. Browse them on the Sheetforma homepage, or tell us which template you need next.