Statistical · conditional sum, many criteria · Nov 2026

The SUMIFS function,
measured & explained.

Syntax, a live playground, a measured multi-condition gallery, the sum_range-first trap, and a sourced error library: conditional sums with AND logic.

D1
fx
=SUMIFS(B2:B5, A2:A5, "Apple", D2:D5, "East")
0
measured gallery rows
0
sourced errors fixed
0
platforms checked
// 01 — Anatomy

How SUMIFS works

Adds the cells in sum_range that meet every criteria pair. The sum_range comes first, unlike SUMIF.

=SUMIFS(sum_range, criteria_range1, criteria1, [...])
sum_rangeThe cells to add — required and FIRST.
criteria pairsEach range is tested against its criteria; all pairs are AND-ed.
wildcards* and ? work inside quoted criteria.
.bool-moat td.res-text{color:var(--cyan);font-weight:700;font-family:var(--mono)}
// 02 — Multi-condition sum

What SUMIFS actually adds

SUMIFS adds cells that meet every condition you give it. Each criteria pair is AND-ed with the others. Every row was measured live in HyperFormula on the sample table. Click any row to load it.

Multi-condition gallery — every condition must pass

ExpressionResultWhy
=SUMIFS(B2:B5,A2:A5,"Apple",D2:D5,"East")250Apple AND East: 100+150
=SUMIFS(B2:B5,A2:A5,"Apple")250One criteria pair behaves like SUMIF
=SUMIFS(B2:B5,D2:D5,"East",C2:C5,">10")150East AND qty>10: only the 150 row
=SUMIFS(B2:B5,A2:A5,"Apple",B2:B5,">120")150Apple AND amount>120
=SUMIFS(B2:B5,A2:A5,"*an*")200Wildcard matches Banana
=SUMIFS(B2:B5,A2:A5,"Apple",D2:D5,"West")0No Apple in West: 0, not an error
=SUMIFS(C2:C5,A2:A5,"Apple",D2:D5,"East")25Sum the qty column instead of amount
=SUMIFS(B2:B5,A2:A5,"<>Apple",D2:D5,"East")0Not-Apple AND East: none qualify

Argument order: SUMIF vs SUMIFS

ExpressionResultWhy
=SUMIF(range, criteria, [sum_range])sum_range lastOne condition; sum_range optional
=SUMIFS(sum_range, range1, crit1, ...)sum_range firstMany conditions; sum_range required
⚠ sum_range moves to the front. In SUMIF it is the optional last argument; in SUMIFS it is the required first argument, followed by pairs of criteria_range, criteria. Every criteria_range must be the same size and shape as sum_range, or results misalign.
// 03 — Try it live

Interactive SUMIFS playground

Edit the table or type any formula — the engine evaluates instantly. Load a preset to see SUMIFS AND multiple criteria across columns, use wildcards, and return 0 when nothing matches.

A1Sample data — click any cell to edit, the formula re-evaluates live
Result
—
✓ readyHyperFormula 3.5
// 04 — Error library

The real-world error library

8 failure patterns mined from actual user reports on Reddit, Stack Overflow and Super User — each with the authentic symptom, root cause, a fix, and a runnable formula. Not textbook theory.

// 05 — Cross-platform

Where SUMIFS works

SUMIFS is available across modern Excel, Google Sheets and LibreOffice. It has been in Excel since 2007.

PlatformSupportNotesGotcha
✓ Supported full SUMIFS◐ Partial works with caveatsCompiled from public docs · verify against your build
// Go deeper

Master conditional aggregation

SUMIFS is one piece. The full course walks the toolkit end to end with live, measured examples.

  • SUMIF / SUMIFS — one vs many conditions
  • The sum_range-first argument order
  • AND logic and how to fake OR
  • Wildcards and the ~ escape
Free while in beta
Browse the function library

No account needed. Every page has a live playground.

// 07 — FAQ

Frequently asked