Function · Math
Excel SUMIFS function
The Excel SUMIFS function adds numbers whose rows pass every test. Groceries in November 2026 total $198.57.
Syntax =SUMIFS(sum_range, criteria_range1, criteria1, ...)
=SUMIFS(C2:C4,B2:B4,"Groceries",A2:A4,">="&DATE(2026,11,1),A2:A4,"<="&DATE(2026,11,30))Arguments
| Name | Required | What to pass |
|---|---|---|
| sum_range | Required | The numbers to add. This is the first argument, unlike SUMIF. |
| criteria_range1 | Required | The first column to test. Same height as sum_range. |
| criteria1 | Required | The test for that column. |
| criteria_range2, criteria2, … | Optional | More 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
| A | B | C | |
|---|---|---|---|
| 1 | Date | Category | Amount |
| 2 | 11/3/2026 | Groceries | 86.40 |
| 3 | 11/6/2026 | Groceries | 112.17 |
| 4 | 11/8/2026 | Utilities | 143.60 |
| 5 | November groceries | 198.57 |
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.