SUMIFS in Excel: Syntax, 5 Examples, Date Range & Wildcards | Sheets & Cells
Function · Math & Statistical

SUMIFS — Conditional Sum with Multiple Criteria

The function every dashboard, financial model, and expense tracker depends on. SUMIFS adds up numbers that meet multiple conditions simultaneously: sales in the North region AND for Widget A AND in Q1. AND logic, up to 127 criteria pairs, dates, wildcards, comparison operators — all built in.

Quick answer
SUMIFS adds up numbers in a range that meet one or more criteria. Each row is included only if ALL criteria match (AND logic). Different from SUMIF, sum_range is the FIRST argument.
Syntax
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2, ...])
Working example
=SUMIFS(Amount, Region, "North", Product, "Widget A") → Sum all Amount values where Region = "North" AND Product = "Widget A". If either condition fails, that row is skipped.
Works in every Excel version since 2007
Excel 2007, 2010, 2013, 2016, 2019, 2021, 365, Excel for the web, Google Sheets, LibreOffice, Apple Numbers. Universal compatibility on any modern spreadsheet. Add-in for Excel 2003 users: SUMPRODUCT is the fallback (see the comparison table below).
📗 Free SUMIFS example workbook
9 sheets · 24-row sales log · every SUMIFS pattern demonstrated · includes SUMIF/SUMIFS/SUMPRODUCT comparison
Download .xlsx (free) Open in Sheets
Category
Math & Statistical
Difficulty
Beginner → Intermediate
Excel version
2007+
Max criteria
127 pairs
127
Max criteria pairs
5
Worked examples
7
Common errors
8/10
Templates using it

Syntax breakdown

SUMIFS takes three required arguments to start, then any number of additional criteria pairs. The pattern scales cleanly from 1 criterion to 127.

ArgumentTypeWhat it does
sum_range REQUIRED The column of numbers you want to add up. This is what gets summed — everything else filters which rows qualify. Note: this comes FIRST in SUMIFS, unlike SUMIF where sum_range is last.
criteria_range1 REQUIRED First column to filter on (e.g., Region, Product, Date). Must be the same size as sum_range.
criteria1 REQUIRED Value or expression to match in criteria_range1. Can be text ("North"), a number (100), a cell reference (A2), or a comparison expression (">100").
criteria_range2 OPTIONAL Second filter column. Add up to 127 range/criteria pairs to layer filters. All must match.
criteria2 OPTIONAL Second criteria expression. All criteria must be true for a row to be included (AND logic — never OR).
⚠️ The single most common SUMIFS mistake
Argument order. SUMIF and SUMIFS have different argument orders. Users who first learned SUMIF and later graduated to SUMIFS write the arguments in the wrong order — and get 0 back (or #VALUE!) with no clear error.
SUMIF — sum_range LAST
=SUMIF(criteria_range, criteria, sum_range)
SUMIFS — sum_range FIRST
=SUMIFS(sum_range, criteria_range, criteria, ...)
Rule of thumb: put the money column first in SUMIFS. Always. This order lets you scale to any number of criteria pairs without rewriting.

Five working examples

Every example uses a real 24-row sales log from the free workbook. Q1 2026 data across 4 regions, 5 products, and 6 salespeople. Grand total: $125,441.65.

01 Basic SUMIFS — single criterion

Sum all sales in the North region. The simplest possible SUMIFS.

RegionProductAmount
NorthWidget A$2,499.75
SouthGizmo Pro$8,900.00
EastWidget B$1,625.00
NorthBundle X$6,450.00
WestGizmo Lite$1,749.65
NorthGizmo Pro$11,570.00
…and 18 more rows
=SUMIFS(Amount, Region, "North")
Returns $51,394.15 — sum of all rows where Region equals "North"

Even with a single criterion, SUMIFS is preferable to SUMIF for one reason: consistent argument order. Start with SUMIFS, add more criteria as you go — no need to rewrite when requirements grow.

02 Multiple criteria — AND logic

Sum sales in North AND for Widget A AND by Emma Thompson. Three filters, all must match.

RegionProductSalespersonAmount
NorthWidget AEmma Thompson$2,499.75
SouthGizmo ProDavid Kim$8,900.00
NorthGizmo ProEmma Thompson$11,570.00
NorthWidget AMichael Chen$3,749.85
=SUMIFS(Amount, Region, "North", Product, "Widget A", Salesperson, "Emma Thompson")
Returns $2,499.75 — only one row matches ALL three criteria
=SUMIFS(Amount, Region, "North", Product, "Widget A")
Returns $6,249.60 — removing the salesperson filter now matches Emma AND Michael

Each criteria_range must be the same size as sum_range. The order of criteria pairs doesn't matter — SUMIFS checks all of them for every row. Add up to 127 criteria pairs.

03 Date range — the concatenation pattern

Sum all sales between Jan 15 and Feb 15, 2026. The pattern that trips up 90% of users.

=SUMIFS(Amount, Date, ">="&DATE(2026,1,15), Date, "<="&DATE(2026,2,15))
Returns $39,638.20 — sum of all rows with dates in the inclusive range
The critical trick: the & concatenates the operator string with the actual date value. ">="&DATE(2026,1,15) becomes the criteria >=Jan 15, 2026. Without the &, you'd be searching for the literal text ">="&DATE(...) — never a match, always returns 0.

Date range with cell references

The same pattern with editable start/end cells:

=SUMIFS(Amount, Date, ">="&$C$16, Date, "<="&$C$17)
C16 and C17 hold your start and end dates. Change either — the sum updates instantly.

Common date range patterns

=SUMIFS(Amount, Date, ">="&EOMONTH(TODAY(),-1)+1, Date, "<="&EOMONTH(TODAY(),0))
Sum for the current month, always (self-updating).
=SUMIFS(Amount, Date, ">="&DATE(YEAR(TODAY()),1,1), Date, "<="&TODAY())
Year-to-date sum. Perfect for running dashboards.

04 Wildcards — group text patterns

Sum all "Widget" products in one shot without listing each variant.

PatternMatchesTotal
Widget*Any product starting with "Widget"$23,823.35
Gizmo*Any product starting with "Gizmo"$60,118.30
*Pro*Any product containing "Pro"$51,620.00
Widget ?"Widget" + exactly one character$23,823.35
=SUMIFS(Amount, Product, "Widget*")
Returns $23,823.35 — Widget A + Widget B combined
=SUMIFS(Amount, Product, "Widget*", Region, "North")
Wildcards combine with other criteria — Widget-anything sold in North

* matches any sequence of characters (including empty). ? matches exactly one character. Wildcards work only on TEXT criteria_ranges — for numeric ranges, use comparison operators instead (Example 5). To match a literal * or ?, prefix with ~.

05 Comparison operators — numeric thresholds and exclusions

Sum sales above $5,000. Sum sales NOT from the North region. Combine operators with cell references.

=SUMIFS(Amount, Amount, ">5000")
Returns $93,120 — sum of all transactions above $5,000
=SUMIFS(Amount, Amount, ">=2000", Amount, "<=5000")
Between $2,000 and $5,000 (inclusive)
=SUMIFS(Amount, Region, "<>North")
Returns $74,047.50 — every region EXCEPT North (exclusion)
=SUMIFS(Amount, Amount, ">"&$C$23)
Dynamic threshold from a cell — put your amount in C23, filter updates live
The operator rule: comparison operators (>, <, >=, <=, <>) must be INSIDE the criteria string. To combine with a cell reference, use & to concatenate: ">"&C2. Without the ampersand, Excel searches for the literal text ">C2" — no match.

Interactive playground

Try it Live SUMIFS demonstration

This mirrors the live cells in the workbook. Change the yellow inputs → the blue answer updates.

Input · Region
North
Output · Total sales
$51,394.15
=SUMIFS(SalesAmount, SalesRegion, "North")
Input · Region + Product
North + Gizmo Pro
Output · Filtered total
$24,920.00
=SUMIFS(SalesAmount, SalesRegion, $C$24, SalesProduct, $C$25)

Download the workbook to experiment with dropdowns, date pickers, and threshold sliders.

Common errors and how to fix them

SUMIFS mistakes usually return 0 (or #VALUE!) with no clear error — worse than an explicit error because your dashboard looks like it's working. Seven common scenarios:

ResultWhy it happensBroken → Fix
#VALUE! sum_range and criteria_range are different sizes (row counts don't match). SUMIFS(G6:G29, C6:C15, "North") SUMIFS(G6:G29, C6:C29, "North")
0 (silent) Wrong argument order — you wrote SUMIF-style with sum_range LAST. SUMIFS(C6:C29, "North", G6:G29) SUMIFS(G6:G29, C6:C29, "North")
0 (silent) Missing & concatenation when using a cell reference in a comparison. SUMIFS(Amount, Amount, ">C2") SUMIFS(Amount, Amount, ">"&C2)
0 (silent) Trailing spaces in criteria value or criteria_range data (invisible but breaks match). SUMIFS(Amount, Region, "North ") SUMIFS(Amount, Region, TRIM("North "))
0 (silent) Text-vs-number mismatch — criteria is text but data is numeric (or vice versa). SUMIFS(Amount, Qty, "100") SUMIFS(Amount, Qty, 100)
#VALUE! Reference to a closed workbook (SUMIFS cannot read closed external files). SUMIFS('[Closed.xlsx]Sheet1'!A:A, ...) Open the source workbook, or use SUMPRODUCT
Wrong result Wildcards applied to a numeric criteria_range (wildcards only work on text). SUMIFS(Amount, Amount, "1*") SUMIFS(Amount, Amount, ">=1000", Amount, "<2000")
📗 Every example above, in one workbook
24-row sales log, live-filter panels for every pattern, and a SUMIF/SUMIFS/SUMPRODUCT comparison sheet.
Download sumifs-examples-2026.xlsx

SUMIF vs SUMIFS vs SUMPRODUCT — same result, different pattern

Three ways to conditionally sum. Search for any of these comparisons and you'll find this table — here's the real answer:

Feature SUMIF SUMIFS SUMPRODUCT
Multiple criteria (AND) ✗ One only ✓ Up to 127 ✓ Unlimited
OR logic across criteria ✗ No ✗ No ✓ Yes Via addition
Wildcards ✓ Yes ✓ Yes ◐ ISNUMBER+SEARCH
Comparison operators ✓ In criteria string ✓ In criteria string ✓ Native
Argument order (sum_range) Last First N/A
Speed on large data Fast Fast Slower Array math
Works with closed workbooks ✗ No ✗ No ✓ Yes
Excel version All (1993+) 2007+ All (1993+)
Readability Simple Clear Cryptic
Calculated criteria (e.g., LEFT(x,3)) ✗ Limited ✗ Limited ✓ Yes
The recommendation: Use SUMIFS as your default. Learn SUMPRODUCT for the two things SUMIFS can't do — OR logic and closed-workbook references. Ignore SUMIF unless you're maintaining legacy code — SUMIFS with one criterion is strictly better (consistent order, scales cleanly).

The IFS family — five functions, one pattern

SUMIFS is the flagship of a family. Once you know the criteria model, four more functions unlock automatically — same argument structure, different aggregation:

Meet the family

Every function below uses the same (aggregate_range, criteria_range1, criteria1, ...) pattern. Master SUMIFS and you've mastered them all.

Example: to count North-region Widget A transactions instead of summing them, swap the function name — keep everything else identical:

=SUMIFS(Amount, Region, "North", Product, "Widget A") ' → $6,249.60
=COUNTIFS(Region, "North", Product, "Widget A") ' → 2 transactions
=AVERAGEIFS(Amount, Region, "North", Product, "Widget A") ' → $3,124.80

MAXIFS and MINIFS require Excel 2019 or 365 (introduced later than the others). SUMIFS, COUNTIFS, and AVERAGEIFS all ship with Excel 2007+.

Related functions

Excel version compatibility

SUMIFS has been in Excel since 2007. If you're on any modern Excel or spreadsheet app, it just works:

PlatformSupports SUMIFS?Notes
Excel 365 (Windows & Mac)✓ YesFull support
Excel 2021✓ YesFull support
Excel 2019 / 2016 / 2013 / 2010 / 2007✓ YesIntroduced in Excel 2007
Excel 2003 and earlier✗ NoUse SUMPRODUCT instead
Excel for the web✓ YesFull support
Excel on iPad & iPhone✓ YesFull support
Google Sheets✓ YesSame syntax, same behavior
LibreOffice Calc✓ YesSame syntax, all versions
Apple Numbers✓ YesSame syntax

When to use SUMIFS vs. alternatives

Use SUMIFS when…

  • You have one or more criteria that must all match (AND logic). This is 95% of real-world conditional sums.
  • Your data is in a normal open workbook. Not a closed external file.
  • Speed matters. SUMIFS is fast because it's built into Excel's calc engine — much faster than SUMPRODUCT for the same result.
  • You want readable formulas. SUMIFS reads almost like English: "Sum amounts where region is North and product is Widget A."

Use SUMPRODUCT instead when…

  • You need OR logic across criteria (rows matching Region = "North" OR Region = "South").
  • Your criteria involve calculated columns (e.g., LEFT(Product,6) = "Widget").
  • You need to sum from a closed external workbook.
  • You're stuck on Excel 2003 or older.

Use SUBTOTAL instead when…

  • Your users are toggling AutoFilter and you want the total to reflect what's visible.
  • You're building a filterable list report where the total updates as filters change.

How SUMIFS actually works

The algorithm

SUMIFS walks through each row of your criteria_ranges in parallel. For every row, it checks: does every criteria pair match? If YES to all criteria, add that row's sum_range value to the running total. If NO to any criteria, skip. It's pure row-by-row filtering with a running sum.

Because all criteria must match (AND logic), the order of criteria pairs doesn't affect the result. But it does affect readability — put your most restrictive criteria first for clearer intent, or group them by column type for maintenance.

Text criteria — the built-in behaviors

  • Case-insensitive: "NORTH" matches "north".
  • Wildcards work in exact-match mode: * for any characters, ? for one.
  • Whitespace is significant — trailing spaces silently break matches. Use TRIM() to clean.

Numeric criteria — the operator syntax

Numbers can be compared with >, <, >=, <=, <>, or omitted (implicit equality). Rules:

  • Operators must be INSIDE the criteria string: ">100", not >100.
  • To reference a cell in a comparison, use & to concatenate: ">"&C2.
  • Implicit equality on a number just uses the number: SUMIFS(Amount, Qty, 100).

Date criteria — dates are numbers under the hood

Excel stores dates as serial numbers (Jan 1, 1900 = 1). So date comparisons work exactly like numeric comparisons — but you'll almost always use cell references or DATE() functions rather than raw serial numbers:

=SUMIFS(Amount, Date, ">="&DATE(2026,1,1), Date, "<="&DATE(2026,3,31))

This is Excel's most common date-range pattern. Two criteria on the same date column, one with >= and one with <=, both concatenated to actual date values.

The 127-criteria limit

SUMIFS accepts up to 127 criteria_range/criteria pairs. Realistically nobody uses more than 4-5. If you find yourself approaching double digits, you're probably solving the wrong problem — reshape your data into a proper table and use a PivotTable or Power Query instead.

Performance notes

SUMIFS is one of Excel's fastest aggregation functions. Three things affect its speed:

  • Range size. The narrower your ranges (avoid whole-column references like A:A unless truly needed), the faster the calc. Prefer $A$2:$A$5000 over $A:$A.
  • Number of criteria pairs. Each additional pair is another comparison per row. Linear scaling — 3 criteria is 3× slower than 1 for the same row count, roughly.
  • Data-type consistency. Mixed numeric/text data in a criteria_range forces Excel to coerce types on every comparison — measurably slower than clean data.

When to switch to a PivotTable or Power Query

If you're writing dozens of SUMIFS formulas to build a summary table (sum by region, by product, by month, in a grid), stop. Build a PivotTable — it's faster, easier to maintain, and refreshes with one click. If your data comes from an external source, Power Query's Group By does the aggregation once and produces a clean table.

How to write a SUMIFS from scratch

  1. Identify the sum_range

    What's the column of numbers you want to add up? This is your FIRST argument. Get in the habit — sum first, filters after.

  2. Add your first criteria pair

    =SUMIFS(sum_range, criteria_range, criteria). Simple text or numbers work as-is: "North" or 100.

  3. Add more criteria as needed

    Each additional filter is another range/criteria pair. All must match — AND logic. Add up to 127 pairs.

  4. Use the operator + & trick for numeric or date thresholds

    Wrap comparisons in quotes: ">100". Combine with cell references using &: ">"&C2. For dates: ">="&DATE(2026,1,1).

  5. Test with known-answer rows

    Before trusting the result, verify against a small subset you can manually verify. SUMIFS returns 0 silently on many errors — always sanity-check.

Functions used with SUMIFS

🎁 Grab the free SUMIFS workbook
24-row sales log, live-filter panels for every pattern, SUMIF/SUMIFS/SUMPRODUCT comparison sheet, common-errors playground.
Download sumifs-examples-2026.xlsx

Frequently asked questions

What's the difference between SUMIF and SUMIFS?

Three things: (1) SUMIFS takes multiple criteria (up to 127 pairs), SUMIF takes only one. (2) SUMIFS has sum_range as the FIRST argument, SUMIF has it as the LAST — argument order is the #1 source of confusion. (3) SUMIFS has been in Excel since 2007; SUMIF is older. Use SUMIFS for everything new — it's a strict superset with a cleaner argument pattern.

Why is my SUMIFS returning 0?

Six common reasons: wrong argument order (sum_range must be first), trailing spaces in criteria or data (use TRIM), text-vs-number mismatch (100 vs "100"), missing & when using a cell reference in a comparison (">C2" instead of ">"&C2), criteria_range and sum_range different sizes, or wildcards applied to a numeric range.

Can SUMIFS handle OR logic?

Not directly — SUMIFS is AND-only. Three workarounds: (1) Add multiple SUMIFS results: =SUMIFS(Amt, Region, "North") + SUMIFS(Amt, Region, "South"). (2) Use SUMPRODUCT which supports OR natively: =SUMPRODUCT(((Region="North")+(Region="South"))*Amount). (3) Add a helper column that flags qualifying rows and SUMIFS on that.

How do I use SUMIFS for a date range?

Two criteria on the same Date column — one with >= for the start, one with <= for the end: =SUMIFS(Amount, Date, ">="&DATE(2026,1,1), Date, "<="&DATE(2026,3,31)). The & concatenation is essential — without it, Excel searches for the literal text ">=" & DATE(...)".

Can I use wildcards in SUMIFS?

Yes, on text criteria_ranges only. * matches any characters, ? matches exactly one. Example: =SUMIFS(Amount, Product, "Widget*") sums every product starting with "Widget". For numeric ranges, use comparison operators instead.

How do I reference a cell for the criteria value?

For equality: just use the cell reference directly — =SUMIFS(Amount, Region, C2). For comparisons: use & to concatenate the operator with the reference — =SUMIFS(Amount, Amount, ">"&C2). The operator stays inside quotes, the cell reference stays outside.

What's the maximum number of criteria SUMIFS supports?

127 criteria_range/criteria pairs. In practice, real-world formulas rarely exceed 4-5. If you need more, reshape your data and use a PivotTable — it's easier to build and maintain.

Does SUMIFS work in Google Sheets?

Yes, with identical syntax and behavior. SUMIFS formulas port cleanly between Excel and Sheets — no changes needed.

Is SUMIFS case-sensitive?

No — SUMIFS is case-insensitive for text comparisons. "NORTH", "north", and "North" all match. For case-sensitive summing, use an array formula with EXACT: =SUMPRODUCT(EXACT(Region, "North")*Amount).

Can SUMIFS pull from a closed workbook?

No — this is a significant limitation. SUMIFS and COUNTIFS both return #VALUE! when their ranges reference a closed external workbook. Workarounds: keep the source workbook open, use SUMPRODUCT (which works with closed workbooks), or use Power Query to pull the data into your workbook first.

How is SUMIFS different from a PivotTable?

SUMIFS is a formula — it returns one value per cell. PivotTables are interactive summary tables — you can slice, filter, and reshape without rewriting formulas. Rule of thumb: use SUMIFS for individual cells in a dashboard or model; use a PivotTable for exploration and multi-dimensional summaries.

Why is SUMIFS in some templates but not others?

SUMIFS is used wherever a template needs to aggregate transactions by category, period, or status. Of the 10 free templates on Sheets & Cells, 8 use SUMIFS heavily: Budget Tracker, Expense Report, Inventory Tracker, Sales Dashboard, KPI Dashboard, Timesheet, Employee Attendance, and Project Timeline. The two exceptions (Invoice, Loan Calculator) don't have transaction logs to summarize.

Templates that use SUMIFS

Of the 10 free templates on Sheets & Cells, 8 use SUMIFS as a core aggregation function. The green tag marks which:

Skip the syntax. Ask in plain English.

The Sheets & Cells AI Add-in writes SUMIFS, COUNTIFS, AVERAGEIFS — every criteria pair, every date-range concatenation — right inside Excel. Type "sum Q1 sales for Widget A in the North region" and get the working formula, ready to paste.

Try the AI Add-in →