SUMIFS
Adds values that satisfy multiple criteria.
SUMIFS applies all criteria pairs with logical AND and sums the matching cells.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=SUMIFS(sum_range, criteria_range1, criteria1, [(criteria_range2, criteria2), ...])
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
sum_range | any | Required | — |
criteria_range1 | any | Required | — |
criteria1 | any | Required | — |
criteria_range2 | any | Optional | — |
criteria2 | any | Optional | — |
Accepts a variable number of arguments. Minimum: 3.
Differences from Excel
Formualizer accepts array constants as ranges. Excel requires references. An invalid INDIRECT result in the result range can raise #NAME? in Formualizer, where Excel returns #REF!.
Remarks
- An equality criterion for a date or number (
"10/26/1999","36459",36459) also matches text cells holding that date;<>and ordering criteria do not read date text. - The first argument is always the sum target range.
- Criteria are supplied in
(criteria_range, criteria)pairs. - Criteria ranges are broadcast/padded according to engine matching rules.
Examples
Aggregate numbers from only the East records.
Formula =SUMIFS(A1:A3,B1:B3,"East")
| A | B | |
|---|---|---|
| 1 | 10 | "East" |
| 2 | 50 | "West" |
| 3 | 20 | "East" |
Expected result 30
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Add a second criterion so both conditions must hold.
Formula =SUMIFS(A1:A3,B1:B3,"East",C1:C3,"<5")
| A | B | C | |
|---|---|---|---|
| 1 | 10 | "East" | 2 |
| 2 | 50 | "West" | 4 |
| 3 | 20 | "East" | 6 |
Expected result 10
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Aggregate the only row in a single-row data set.
Formula =SUMIFS(A1:A1,B1:B1,"East",C1:C1,2)
| A | B | C | |
|---|---|---|---|
| 1 | 10 | "East" | 2 |
Expected result 10
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Sum with two conditions
Formula =SUMIFS(C1:C3, A1:A3, "East", B1:B3, ">=2025")
| A | B | C | |
|---|---|---|---|
| 1 | "East" | 2024 | 10 |
| 2 | "East" | 2025 | 20 |
| 3 | "West" | 2025 | 30 |
Expected result 20
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
How are multiple SUMIFS criteria combined?
All criteria pairs are applied with logical AND; every condition must match.
What if criteria range sizes differ?
Ranges are broadcast/padded under engine rules instead of strict Excel-size rejection.