Function Problems

How to Use SUMIFS to Total Expenses by Month and Category in Excel

Camila MilosovichCamila Milosovich Nov 11, 2026 869 views

Question details

The user wants to calculate total expenses based on specific months and categories using the SUMIFS function instead of combining IF and AND functions.

How to Use SUMIFS to Total Expenses by Month and Category
Product
Spreadsheets
Device & OS
not provided
Scenario
Summarizing financial data or expense reports by date range and expense category.
Observed behavior
The user needs a clean formula to sum amounts matching multiple criteria such as a specific month and a specific text category.
Before you start

Ensure your expense data is organized in clear, consistent columns (e.g., Dates, Categories, and Amounts) and verify that your date column is formatted as actual date values, not plain text.

Solution 1Recommended

Using the SUMIFS Function for Multiple Criteria

Apply the SUMIFS formula to sum data matching a specific date range and text category without needing helper columns.

The SUMIFS function is designed to add all its arguments that meet multiple criteria. To sum by a specific month, you define the start and end dates using the DATE function combined with logical operators.

1
Locate your data columns

Identify the columns containing your amounts (e.g., Column D), dates (e.g., Column A), and categories (e.g., Column B).

2
Select the target cell

Click the empty cell where you want the final expense total to appear.

3
Enter the SUMIFS formula

Type the formula exactly as follows: =SUMIFS(Expenses!D2:D1000, Expenses!A2:A1000, ">"&DATE(2024,3,31), Expenses!A2:A1000, "<"&DATE(2024,5,1), Expenses!B2:B1000, "Web Advertising")

4
Adjust the parameters to fit your data

Modify the ranges (like D2:D1000), adjust the DATE functions to bracket your desired month (e.g., after March 31 and before May 1 for April), change the category string to your target category, and press Enter.

Using the SUMIFS Function for Multiple Criteria
Formula Syntax Tip: In SUMIFS, the sum_range always comes first, followed by pairs of criteria_range and criteria. Ensure that all ranges are the exact same size (e.g., rows 2 to 1000) or the formula will return an error.
Efficient Data Analysis

Calculate Complex Totals Easily with WPS Spreadsheet

WPS Spreadsheet fully supports SUMIFS and hundreds of other advanced formulas, making expense tracking and detailed data analysis incredibly easy.

  1. 1. Open your expense sheet: Launch WPS Spreadsheet and open your .xlsx expense report document.
  2. 2. Use the Insert Function tool: Navigate to the 'Formulas' tab on the top ribbon and click 'Insert Function'. Search for 'SUMIFS' in the prompt box.
  3. 3. Fill in the arguments seamlessly: Follow the dialog box prompts to easily select your sum range, criteria ranges, and date/category criteria without having to memorize the exact syntax and quotation marks.
Fully compatible with Microsoft Excel formulas and .xlsx file formats.Built-in 'Insert Function' helper to guide you through complex formulas like SUMIFS.Free and lightweight, running smoothly on Windows, Mac, and Linux systems.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use cell references for the date criteria in SUMIFS instead of the DATE function?

Yes. If you have the start date in cell E1 and the end date in E2, you can write the criteria as ">="&E1 and "<="&E2. This makes your formula dynamic and much easier to update without editing the formula text.

Why is my SUMIFS formula returning a zero?

A zero usually indicates that no cells met all the required criteria. Check if your date column is actually formatted as dates rather than text, ensure there are no trailing spaces in your category names, and verify that the date logic brackets a valid range.

What is the difference between SUMIF and SUMIFS?

SUMIF allows only one condition (e.g., total expenses only for 'Web Advertising'). SUMIFS allows multiple conditions (e.g., total expenses for 'Web Advertising' AND within a specific month). Additionally, in SUMIFS, the range to be summed is the first argument, whereas in SUMIF, it is the last.