Function · Math

Excel SUMIFS function

The Excel SUMIFS function adds numbers whose rows pass every test. Groceries in November 2026 total $198.57.

Excel 2007 and later. Also in Excel for the web and Google Sheets.

Syntax =SUMIFS(sum_range, criteria_range1, criteria1, ...)

SUMIFS
=SUMIFS(C2:C4,B2:B4,"Groceries",A2:A4,">="&DATE(2026,11,1),A2:A4,"<="&DATE(2026,11,30))

Arguments

NameRequiredWhat to pass
sum_rangeRequiredThe numbers to add. This is the first argument, unlike SUMIF.
criteria_range1RequiredThe first column to test. Same height as sum_range.
criteria1RequiredThe test for that column.
criteria_range2, criteria2, …OptionalMore pairs. A row is included only when every pair passes.

Examples

November groceries

=SUMIFS(C2:C4,B2:B4,"Groceries",A2:A4,">="&DATE(2026,11,1),A2:A4,"<="&DATE(2026,11,30))

Result $198.57

=SUMIFS(C2:C4,B2:B4,"Groceries",A2:A4,">="&DATE(2026,11,1),A2:A4,"<="&DATE(2026,11,30))C5
November
ABC
1DateCategoryAmount
211/3/2026Groceries86.40
311/6/2026Groceries112.17
411/8/2026Utilities143.60
5November groceries198.57
A picture of the sheet, not a live calculator. Both grocery dates fall in November 2026.

SUMIFS adds a row only when every test passes. The numbers are the first argument. Each test is a pair after that: a column, then the condition. November groceries are the two grocery rows, $86.40 and $112.17, which is $198.57. The utility bill is in November and is not groceries, so it stays out.

This is the formula in the monthly budget how-to. The criteria are AND, not OR. “Groceries or utilities” is two SUMIFS added together, or a SUMPRODUCT. A date typed as text will not sit on the right side of >= the way a date serial does. DATE(2026,11,1) does not care whether the workbook is set to US or European month-first dates.