LocalExcelTool
Get started

Excel SUMIFS function

SUMIFS is the standard tool for multi-dimensional totals — by region and month and product. It differs from SUMIF in one fatal detail: the range to add comes first, the condition ranges after. Reversing that order is the most common source of wrong answers in this family.

Math & conditional sums · Available in: Excel 2007 and later

Syntax

SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

What it returns The total of sum_range across the rows that meet every condition.

Arguments
sum_rangerequiredThe range to add up — always the first argument.
criteria_range1requiredThe first range to test, followed by its condition.
criteria1requiredFurther condition ranges with their conditions, in pairs.
criteria_range2optional第二个条件区域,与下一个参数成对出现。

Examples

Region plus month

RegionMonthAmount
North2026-101200
North2026-11450
South2026-11800
= SUMIFS(C2:C4,A2:A4,"North",B2:B4,"2026-11")

→ 450

Only row 2 satisfies both North and 2026-11, so the answer is 450. The first argument is the column being added; the conditions come after — the reverse of SUMIF.

Conditions built from cells (a date range)

StartEndAmount
2026-11-012026-11-30
= SUMIFS(D2:D100,C2:C100,">="&A2,C2:C100,"<="&B2)

→ 该区间内的合计

Operators are concatenated with the cell: ">="&A2. Changing the dates then needs no edit to the formula, and the same range can be referenced twice as upper and lower bounds.

Common mistakes

  • 1.Putting sum_range last, the SUMIF order. The first range is then treated as the one to add and every total is wrong, with no error.
  • 2.Condition ranges of different heights return #VALUE!; every range must match sum_range in both dimensions.
  • 3.">"&DATE(2026,11,1) works, but ">DATE(2026,11,1)" is compared as text and quietly returns the wrong rows.
  • 4.Expecting OR behaviour. SUMIFS is AND; for "A or B" add two SUMIFS together or reach for SUMPRODUCT.

How to use it

  1. 1.Click the cell where the result should appear.
  2. 2.Type = then the function name, and press Tab to accept it.
  3. 3.Enter each argument separated by commas; ranges can be dragged with the mouse.
  4. 4.Press Enter. Drag the fill handle down if the same formula applies to more rows.

Frequently asked questions

What is the syntax of SUMIFS?

SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...). What it returns: The total of sum_range across the rows that meet every condition.

Which Excel versions support SUMIFS?

Excel 2007 and later. It is available in every desktop version unless the note above says otherwise.

Why does SUMIFS return an error instead of a value?

Putting sum_range last, the SUMIF order. The first range is then treated as the one to add and every total is wrong, with no error.

Related functions

More in this group

Need to get the data in first?

← All Excel formulas