WorkbookLogic
FunctionMathintermediateSUMIFSIFROWSROUND

SUMIFS Function

By WorkbookLogic

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.

ExcelLast reviewed Sep 11, 2026
sumifs-function-v1.0.0.xlsx
Excel SUMIFS Function
Sum values only when every selected condition is met, with aligned criteria ranges and visible checks.
Source data, editableSUMIFS examples
RegionProductStatusAmountExampleCriterion 1Criterion 2Formula syntaxResult
NorthCoreOpen1,200.0North and open totalNorthOpen=SUMIFS(D12:D21,A12:A21,F12,C12:C21,G12)2,650.0
SouthPlusClosed850.0North Core totalNorthCore=SUMIFS(D12:D21,A12:A21,F13,B12:B21,G13)1,960.0
NorthPlusOpen1,450.0Core and open totalCoreOpen=SUMIFS(D12:D21,B12:B21,F14,C12:C21,G14)4,025.0
WestCorePending0.0
EastPlusClosed1,100.0How to read the examples
NorthCoreClosed760.0Each criteria pair filters the same source rows.
SouthCoreOpen1,325.0Every condition must be true for a row to contribute.
WestPlusClosed-100.0Keep every criteria range aligned with the source values.
NorthPlusPending980.0
EastCoreOpen1,500.0
Reliability checks
Every criteria range aligns to the sum rangeOK
North and open total reconciles to the visible matching rowsOK

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 sum_range first.

No matches

Returns 0.

Zero and negative values

Retain their normal numeric effect when the row qualifies.

Different-sized ranges

Returns #VALUE!.

Text case and wildcards

Text matching is not case-sensitive; * and ? support patterns.

Blank criteria

"" targets blanks and "<>" targets nonblanks.

Calculated arrays

Range arguments must be worksheet ranges rather than arrays returned by transformations such as YEAR(range).

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.