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.
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.
| Argument | Type | What 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). |
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.
| Region | Product | Amount |
|---|---|---|
| North | Widget A | $2,499.75 |
| South | Gizmo Pro | $8,900.00 |
| East | Widget B | $1,625.00 |
| North | Bundle X | $6,450.00 |
| West | Gizmo Lite | $1,749.65 |
| North | Gizmo Pro | $11,570.00 |
| …and 18 more rows | ||
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.
| Region | Product | Salesperson | Amount |
|---|---|---|---|
| North | Widget A | Emma Thompson | $2,499.75 |
| South | Gizmo Pro | David Kim | $8,900.00 |
| North | Gizmo Pro | Emma Thompson | $11,570.00 |
| North | Widget A | Michael Chen | $3,749.85 |
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.
& 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:
Common date range patterns
04 Wildcards — group text patterns
Sum all "Widget" products in one shot without listing each variant.
| Pattern | Matches | Total |
|---|---|---|
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 |
* 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.
>, <, >=, <=, <>) 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.
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:
| Result | Why it happens | Broken → 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") |
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 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:
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:
| Platform | Supports SUMIFS? | Notes |
|---|---|---|
| Excel 365 (Windows & Mac) | ✓ Yes | Full support |
| Excel 2021 | ✓ Yes | Full support |
| Excel 2019 / 2016 / 2013 / 2010 / 2007 | ✓ Yes | Introduced in Excel 2007 |
| Excel 2003 and earlier | ✗ No | Use SUMPRODUCT instead |
| Excel for the web | ✓ Yes | Full support |
| Excel on iPad & iPhone | ✓ Yes | Full support |
| Google Sheets | ✓ Yes | Same syntax, same behavior |
| LibreOffice Calc | ✓ Yes | Same syntax, all versions |
| Apple Numbers | ✓ Yes | Same 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:
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:Aunless truly needed), the faster the calc. Prefer$A$2:$A$5000over$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
-
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.
-
Add your first criteria pair
=SUMIFS(sum_range, criteria_range, criteria). Simple text or numbers work as-is:"North"or100. -
Add more criteria as needed
Each additional filter is another range/criteria pair. All must match — AND logic. Add up to 127 pairs.
-
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). -
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
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 →