The direct answer: use SUMIFS when you need to sum values that meet one or more conditions, and use SUMIF (or a plain SUM with criteria) only when you have exactly one condition. In short, SUMIFS is the more powerful and flexible function, and for any new spreadsheet work, SUMIFS is almost always the better choice—even for a single criterion, because it handles ranges in a consistent order.
What SUMIF and SUMIFS Actually Do
Both functions add up numbers in a range based on conditions you specify. The difference is in how many conditions they accept and how the arguments are ordered.
- SUMIF sums cells that match a single condition. Its syntax is
SUMIF(range, criteria, [sum_range])—the range to check comes first, then the condition, then the range to sum (optional if you want to sum the same range you check). - SUMIFS sums cells that match one or more conditions. Its syntax is
SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)—the range to sum comes first, then pairs of criteria ranges and conditions.
For example, with sales in B2:B20 and region in A2:A20, to sum sales for “West”:
- SUMIF:
=SUMIF(A2:A20,"West",B2:B20) - SUMIFS:
=SUMIFS(B2:B20,A2:A20,"West")
Both return the same result, but notice the order of arguments is reversed. That reversal is the most common source of errors when people switch between the two.
Why SUMIFS Is Usually the Better Choice
SUMIFS was introduced in Excel 2007, and it improves on SUMIF in several important ways:
- Multiple criteria: You can add up to 127 condition pairs, while SUMIF only handles one.
- Consistent argument order: SUMIFS always puts the sum range first, which makes it easier to read and extend. SUMIF puts the criteria range first, which trips up many users.
- Better handling of empty criteria: If a criteria cell is blank, SUMIFS treats it as a match for empty cells, while SUMIF may behave unexpectedly depending on the version.
- Wildcards work the same: Both support asterisk (*) for any sequence and question mark (?) for a single character, but SUMIFS is more predictable when combined with other functions.
For these reasons, Microsoft’s own documentation recommends SUMIFS as the preferred function. If you are building a new spreadsheet, start with SUMIFS even for a single condition—it makes adding more conditions later a simple edit rather than a rewrite.
How to Choose Between SUMIF and SUMIFS
Here is a practical decision guide:
- If you have exactly one condition and you are working with an older Excel version (2003 or earlier), use SUMIF—SUMIFS does not exist there.
- If you have one condition but you are on Excel 2007 or later, use SUMIFS for consistency and future-proofing.
- If you have two or more conditions, you must use SUMIFS (or SUMPRODUCT, but SUMIFS is simpler).
- If you need to sum based on multiple conditions across different columns, SUMIFS is the clear winner.
Example: to sum sales for “West” region in “Q1” quarter, with region in A2:A20, quarter in B2:B20, and sales in C2:C20, use:
=SUMIFS(C2:C20, A2:A20, "West", B2:B20, "Q1")
This returns the total of all rows where both conditions are true.
Common Problems and How to Fix Them
Even experienced users run into these issues:
- Wrong argument order: Mixing up SUMIF and SUMIFS syntax is the #1 error. Always double-check which function you are typing.
- Criteria with text and numbers: If your criteria cell contains a number, you can reference it directly:
=SUMIFS(C2:C20, A2:A20, E1). If it is text, you can use a cell reference too, but if you type text directly, enclose it in double quotes:"West". - Criteria that are dates: Dates are stored as numbers in Excel. To match a date, use the DATE function or a cell containing a date:
=SUMIFS(C2:C20, B2:B20, ">="&DATE(2024,1,1)). - Blank or empty cells: To sum when a criteria range is blank, use
""as the criteria. To sum when it is not blank, use"<>". - Wildcards not working: Wildcards only work with text criteria, not numbers. If you need to match partial text, use
"*text*". - SUMIFS returns 0: Check that your criteria ranges are the same size and that there are no leading/trailing spaces in your data. Also verify that the criteria text matches exactly (case-insensitive, but spaces matter).
Comparing SUMIFS with SUMPRODUCT and Other Alternatives
SUMIFS is not the only way to sum with conditions. Here is how it stacks up:
- SUMPRODUCT: Can handle multiple conditions without array formulas, but it is slower on large datasets and less intuitive. Syntax example:
=SUMPRODUCT((A2:A20="West")*(B2:B20="Q1")*C2:C20). SUMIFS is faster and easier to read. - SUM with array formula: Press Ctrl+Shift+Enter (or use SUMPRODUCT) to sum with conditions in older Excel. SUMIFS eliminates the need for array entry.
- FILTER function (Excel 365): You can use
=SUM(FILTER(C2:C20, (A2:A20="West")*(B2:B20="Q1"))). This is flexible but requires Excel 365 or Excel 2021. - DSUM: A database function that requires a criteria range set up separately. It is powerful but more complex for simple tasks.
For most everyday summing with conditions, SUMIFS is the best balance of speed, clarity, and compatibility.
Costs and Performance Considerations
SUMIFS is a compiled function, so it is fast even on large datasets. However, performance can degrade if you use entire column references (like A:A) instead of a limited range (like A2:A1000). Whole-column references force Excel to process over a million cells per column, which slows down calculation. For best performance, use explicit ranges that cover only your data.
There is no monetary cost to using SUMIFS—it is part of every Excel version since 2007. But there is a learning cost: if you are new to Excel, the argument order can be confusing. Once you learn it, though, it becomes second nature.
Frequently Asked Questions
Can I use SUMIFS with multiple criteria in the same column?
Yes, but you need to use an array constant or a helper column. For example, to sum sales for both “West” and “East” in column A, you can use =SUM(SUMIFS(C2:C20, A2:A20, {"West","East"})) and press Enter (in Excel 365 it works without Ctrl+Shift+Enter). This works because SUMIFS returns an array of two results, which SUM adds together.
What is the difference between SUMIF and SUMIFS in terms of wildcards?
Both support wildcards, but SUMIFS treats them consistently. For example, =SUMIFS(C2:C20, A2:A20, "*West*") sums all cells in C where A contains “West”. SUMIF does the same, but some users find the reversed argument order causes them to put the wildcard in the wrong range.
Why does my SUMIFS return #VALUE! error?
This usually happens when the sum range and criteria ranges are not the same size. For example, if C2:C20 is the sum range and A2:A21 is a criteria range, Excel cannot align them. Make sure all ranges have the same number of rows and columns.
Can I use cell references as criteria in SUMIFS?
Absolutely. Instead of typing “West”, you can use a cell that contains “West”, like =SUMIFS(C2:C20, A2:A20, E1). This makes your formula dynamic—change E1 and the sum updates. For numeric comparisons, use ">"&E1 to concatenate the operator with the cell value.
Is there a limit to how many criteria SUMIFS can handle?
Yes, the limit is 127 pairs of criteria_range/criteria. In practice, you will rarely need that many, but it is good to know the ceiling exists.
Does SUMIFS work with dates and times?
Yes, but you must enter dates correctly. Use the DATE function or a cell containing a date, and for time, use TIME. For example, to sum sales after January 1, 2024: =SUMIFS(C2:C20, B2:B20, ">="&DATE(2024,1,1)).
Final Recommendation
For any new formula, choose SUMIFS. It is more versatile, easier to maintain, and avoids the argument-order trap that plagues SUMIF. The only time SUMIF is necessary is if you are stuck on Excel 2003 or earlier—which is extremely rare today. If you already have SUMIF formulas that work, there is no urgent need to change them, but for new work, make SUMIFS your default.
Related
- DB10DL 10.8V Lithium Ion Micro Driver Drill Guide
- Physics Wallah Balance Sheet: Key Financials
- Balloons with Metallic Numbers: Sizes, Filling, and Safety
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- Freeze Function in Excel: Freeze Panes or FormulasTo keep headings visible while you scroll, select the cell just below and to the right of the…
- Excel Exponential Power Formula: Use the ^ OperatorTo raise a number to a power in Excel, use the caret operator: with the base in A2…
- Excel Power Query Trim Text: How to Clean DataYes, Power Query has a dedicated Trim function that removes leading and trailing spaces from text, and you…
- Excel SPLIT Function: Use TEXTSPLIT to Separate TextExcel does not have a function named SPLIT. In Microsoft 365 or Excel 2024, use TEXTSPLIT to divide…
- Change Caps Lock to Lowercase in Excel with a FormulaTo change text that is already in all caps to lowercase in Excel, enter =LOWER(A2) in a blank…
- Excel Formula for the Lower of Two Values in Two CellsTo return the lower of two values in Excel, use =MIN(A2,B2). If the values are in cells A2…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.