SUMIFS Function
The Excel SUMIFS function adds values when multiple conditions are true. It places the sum range first, then accepts aligned criteria range and criterion pairs.
| Excel SUMIFS Function | ||||||||
| Sum values only when every selected condition is met, with aligned criteria ranges and visible checks. | ||||||||
| Source data, editable | SUMIFS examples | |||||||
| Region | Product | Status | Amount | Example | Criterion 1 | Criterion 2 | Formula syntax | Result |
| North | Core | Open | 1,200.0 | North and open total | North | Open | =SUMIFS(D12:D21,A12:A21,F12,C12:C21,G12) | 2,650.0 |
| South | Plus | Closed | 850.0 | North Core total | North | Core | =SUMIFS(D12:D21,A12:A21,F13,B12:B21,G13) | 1,960.0 |
| North | Plus | Open | 1,450.0 | Core and open total | Core | Open | =SUMIFS(D12:D21,B12:B21,F14,C12:C21,G14) | 4,025.0 |
| West | Core | Pending | 0.0 | |||||
| East | Plus | Closed | 1,100.0 | How to read the examples | ||||
| North | Core | Closed | 760.0 | Each criteria pair filters the same source rows. | ||||
| South | Core | Open | 1,325.0 | Every condition must be true for a row to contribute. | ||||
| West | Plus | Closed | -100.0 | Keep every criteria range aligned with the source values. | ||||
| North | Plus | Pending | 980.0 | |||||
| East | Core | Open | 1,500.0 | |||||
| Reliability checks | ||||||||
| Every criteria range aligns to the sum range | OK | |||||||
| North and open total reconciles to the visible matching rows | OK | |||||||
Overview
The Excel SUMIFS function totals values only when all selected conditions are met. It is designed for transparent multi-criteria totals such as North and Open, one product in one region, or transactions inside a date interval.
Quick reference
Syntax: =SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2], [criteria2], ...)
Returns: The sum of numeric values on rows where every condition is true. (number)
Arguments:
sum_range(required) — The numeric cells to add.criteria_range1(required) — The first range Excel tests.criteria1(required) — The condition applied to criteria_range1.criteria_range2(optional) — An additional range aligned with the sum range and first criteria range.criteria2(optional) — The condition applied to criteria_range2; additional range and criterion pairs may follow.
Additional criteria-range and criterion pairs are optional. Every supplied condition must pass on the same position, and each criteria range must align with sum_range.
Common uses
- Total sales by region and product.
- Sum approved expenses for one department and period.
- Aggregate open pipeline for one owner above a threshold.
- Total transactions between two dates.
Calculations
SUMIFS starts with the values to aggregate, then evaluates each range-criterion pair against the corresponding row. An amount is included only when every condition for that row is true.
The sum_range and all criteria ranges must have matching dimensions and represent the same records in the same order. Different-sized ranges return #VALUE!; equally sized but shifted ranges can produce a believable yet incorrect total.
All conditions use AND logic. Criteria follow the familiar conditional-function syntax: operators are enclosed in quotes, a reference-based threshold is written as ">"&G13, text matching is not case-sensitive, and text wildcards are supported.
Function behavior
Situation | Behavior |
|---|---|
Multiple criteria | Uses AND logic; every condition must be true before an amount is included. |
One criterion pair | Performs a one-condition total, but keeps |
No matches | Returns |
Zero and negative values | Retain their normal numeric effect when the row qualifies. |
Different-sized ranges | Returns |
Text case and wildcards | Text matching is not case-sensitive; |
Blank criteria | |
Calculated arrays | Range arguments must be worksheet ranges rather than arrays returned by transformations such as |
Errors | A relevant error in a tested or summed cell can propagate to the result. |
Common errors
Using SUMIF argument order
What happens:
The formula begins with a criteria range instead of the values to add, so the wrong cells are summed or Excel returns an error.
Better approach:
Start every SUMIFS formula with sum_range, then add range-criterion pairs.
Using shifted or different-sized ranges
What happens:
Excel returns #VALUE! for different dimensions, while a shifted but equally sized range can silently associate the wrong records.
Better approach:
Make every range use the same first row, last row, height, and width.
Expecting OR logic
What happens:
A row that meets only one condition is excluded.
Better approach:
Add separate SUMIFS calculations for non-overlapping OR cases, or use another aggregation method and guard against double counting.
Transforming a criteria range inside SUMIFS
What happens:
A calculated array such as YEAR(A2:A100) is not accepted as a criteria range.
Better approach:
Express the condition with range-friendly boundaries, such as start and end dates, or use SUMPRODUCT.
Example
Example 1 — Region and Status
=SUMIFS(D12:D21,A12:A21,F12,C12:C21,G12)
With North and Open selected, the workbook adds two qualifying amounts, 1,200 and 1,450, and returns 2,650.
Example 2 — Region and Product
=SUMIFS(D12:D21,A12:A21,F13,B12:B21,G13)
This totals Amount where Region is North and Product is Core. The result is 1,960.
Example 3 — Product and Status
=SUMIFS(D12:D21,B12:B21,F14,C12:C21,G14)
The formula totals Core records that are also Open and returns 4,025.
Example workbook
The workbook contains a SUMIFS Example sheet with ten editable Region, Product, Status, and Amount records. Three live formulas demonstrate two-condition totals, and two checks verify range alignment and the North/Open reconciliation. A Notes sheet explains argument order, AND logic, and criteria syntax.
Key takeaway
Put the values to sum first, then pair every condition with a fully aligned range; SUMIFS includes an amount only when all criteria are true.