Introduction
If you’ve ever needed to add numbers in Excel only when certain conditions are met—like sales made by “John” in the “North” region during January—you’ve likely used SUMIF vs SUMIFS. These two functions are the backbone of conditional sums in Excel.
But what’s the difference?
- SUMIF handles one condition.
- SUMIFS handles many conditions.
In this ultimate guide, you’ll learn everything you need to master both functions: syntax, usage patterns, 30+ real‑world examples, tips, gotchas, and downloadable template ideas. Whether you’re a beginner or a working analyst, this is your go‑to reference.
Quick Summary: SUMIF vs SUMIFS
- Use SUMIF for a single criterion (e.g., sum sales for “John”).
- Use SUMIFS for multiple criteria (e.g., “John” + “North” + “January”).
- Argument order is different (careful!):
- SUMIF:
range, criteria, [sum_range]- SUMIFS:
sum_range, criteria_range1, criteria1, …
| Feature | SUMIF | SUMIFS |
|---|---|---|
| Criteria Count | 1 | Multiple |
| Argument Order | range → criteria → [sum_range] | sum_range → criteria_range1 → criteria1 → … |
| Typical Use | Simple sheets | Multi-filter analytics |
| Supports Text/Date/Number | Yes | Yes |
| Requires Matched Range Sizes | Yes | Yes (strict) |
What Is SUMIF? (Definition, Syntax, Examples)
SUMIF adds up values that meet a single condition. It’s the simplest entry point for conditional sums.
SUMIF Syntax
SUMIF(range, criteria, [sum_range])
- range: The cells to evaluate against your condition.
- criteria: The condition—text, number, operator (e.g.,
">100"), or wildcard (e.g.,"*Laptop*"). - sum_range (optional): The cells to add. If omitted, Excel sums range itself.
Tip: If the values you sum are in the same column you’re checking, you can leave
sum_rangeblank.
SUMIF Examples
1) Sum sales made by “John”
=SUMIF(A2:A100, "John", C2:C100)
- Column A = Salesperson
- Column C = Sales Amount
2) Sum amounts greater than 1000 in a column
=SUMIF(C2:C100, ">1000")
3) Sum transactions for “Electronics” category
=SUMIF(B2:B500, "Electronics", D2:D500)
4) Sum values not equal to zero
=SUMIF(C2:C1000, "<>0")
5) Sum text matches with partial string using wildcards
(e.g., all products containing “Pro”)
=SUMIF(B2:B500, "*Pro*", D2:D500)
6) Use cell references in criteria
(e.g., product name in F2)
=SUMIF(B2:B500, F2, D2:D500)
7) Greater than value in a cell (G1)
=SUMIF(D2:D500, ">" & G1)
What Is SUMIFS? (Definition, Syntax, Examples)
SUMIFS adds values that meet multiple conditions, across one or more columns. It’s the “power user” version of SUMIF.
SUMIFS Syntax
SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)
- sum_range: The cells to add.
- criteria_range1, criteria1: First condition and its range.
- [criteria_range2, criteria2], …: Additional condition(s).
Important: All criteria ranges must be the same size as
sum_range.
SUMIFS Examples
1) Sum sales by “John” in the “North” region
=SUMIFS(D2:D1000, A2:A1000, "John", B2:B1000, "North")
2) Sum sales in January 2025
(Suppose date in column C)
=SUMIFS(D2:D1000, C2:C1000, ">=" &DATE(2025,1,1), C2:C1000, "<=" &; DATE(2025,1,31))
3) Sum values between 500 and 1000
=SUMIFS(C2:C1000, C2:C1000, ">=500", C2:C1000, "<=1000")
4) Sum approved orders for a specific customer
=SUMIFS(E2:E2000, A2:A2000, "Acme Ltd", D2:D2000, "Approved")
5) Combine text + date + number filters
=SUMIFS(F2:F5000, B2:B5000, "North", C2:C5000, ">" & G1, A2:A5000, ">=" & H1, A2:A5000, "<=" & I1)
- G1 = minimum amount, H1 = start date, I1 = end date
SUMIF vs SUMIFS: Key Differences
- Number of Conditions
- SUMIF = 1
- SUMIFS = Many
- Argument Order
- SUMIF:
range, criteria, [sum_range] - SUMIFS:
sum_range, criteria_range1, criteria1, …
- SUMIF:
- Range Size Matching
- Both require same-size ranges; SUMIFS enforces this strictly.
- Use Cases
- SUMIF: Quick, simple filters.
- SUMIFS: Multi-filter analytics, reporting, dashboards.
When to Use SUMIF vs SUMIFS
Use SUMIF when:
- You’re filtering by a single attribute (e.g., product, salesperson, region).
- You need a quick total and your dataset is small.
- You only need one operator like
>,<,<>, or a text match.
Use SUMIFS when:
- You need to combine multiple filters (e.g., salesperson + region + date range + status).
- Your analysis depends on calendar periods (YTD, MTD) and segments (region, channel).
- You want to future-proof formulas for dashboard/report use.
30+ Practical Scenarios (Ready-to-Use Formulas)
Below are copy‑paste formulas organized by domain. Adapt the ranges and sheet names as needed.
Sales & Marketing
- Sum sales for a product line Excel=SUMIF($B:$B, “Laptop”, $E:$E)
Show more lines - Sum sales for a rep in a region Excel=SUMIFS($E:$E, $A:$A, “Hussain”, $C:$C, “North”)
Show more lines - Sum online channel revenue only Excel=SUMIF($D:$D, “Online”, $E:$E)
Show more lines - Sum sales excluding returns (Status <> Returned) Excel=SUMIFS($E:$E, $F:$F, “<>Returned”)
Show more lines - Sum sales for top category AND minimum order value Excel=SUMIFS($E:$E, $B:$B, “Electronics”, $E:$E, “>=1000”)
Show more lines - Sum sales for a date range (MTD) Excel=SUMIFS($E:$E, $D:$D, “>=” & EOMONTH(TODAY(),-1)+1, $D:$D, “<=” & TODAY())
Show more lines
Finance & Expenses
- Sum expenses for “Travel” Excel=SUMIF($B:$B, “Travel”, $D:$D)
Show more lines - Sum expenses in Q1 for Department = Sales Excel=SUMIFS($D:$D, $C:$C, “Sales”, $A:$A, “>=” & DATE(2026,1,1), $A:$A, “<=” & DATE(2026,3,31))
Show more lines - Sum reimbursements pending approval Excel=SUMIFS($E:$E, $F:$F, “Pending”)
Show more lines - Sum expenses above a threshold value stored in G1 Excel=SUMIF($D:$D, “>” & $G$1)
Show more lines
Inventory & Operations
- Sum total stock for a SKU prefix (wildcards) Excel=SUMIF($A:$A, “SKU-12*”, $E:$E)
Show more lines - Sum incoming stock by warehouse AND supplier Excel=SUMIFS($F:$F, $C:$C, “WH-North”, $D:$D, “SupplierX”)
Show more lines - Sum replenishments in the last 30 days Excel=SUMIFS($E:$E, $B:$B, “>=” & TODAY()-30)
Show more lines - Sum orders shipped but not delivered Excel=SUMIFS($E:$E, $F:$F, “Shipped”, $G:$G, “<>Delivered”)
Show more lines
HR & People Analytics
- Sum total hours by employee (timesheets) Excel=SUMIF($B:$B, “Anita”, $E:$E)
Show more lines - Sum overtime by team and month Excel=SUMIFS($F:$F, $C:$C, “Engineering”, $A:$A, “>=” & DATE(2026,2,1), $A:$A, “<=” & DATE(2026,2,28))
Show more lines - Sum training budget used for mandatory courses Excel=SUMIFS($E:$E, $D:$D, “Mandatory”)
Show more lines
SaaS & Ecommerce Metrics
- Sum MRR for active customers in India Excel=SUMIFS($F:$F, $D:$D, “Active”, $C:$C, “India”)
Show more lines - Sum GMV for paid channel AND category = “Fashion” Excel=SUMIFS($H:$H, $E:$E, “Paid”, $C:$C, “Fashion”)
Show more lines - Sum refunds between dates Excel=SUMIFS($G:$G, $F:$F, “Refunded”, $A:$A, “>=” & $J$1, $A:$A, “<=” & $K$1)
Show more lines
Date Ranges & Time Intelligence
- Sum current quarter Excel=SUMIFS($E:$E, $D:$D, “>=” & EDATE(EOMONTH(TODAY(),-1),-MOD(MONTH(TODAY())-1,3)), $D:$D, “<=” & TODAY())
Show more lines - Sum previous month Excel=SUMIFS($E:$E, $D:$D, “>=” & EOMONTH(TODAY(),-2)+1, $D:$D, “<=” & EOMONTH(TODAY(),-1))
Show more lines - Sum year-to-date (YTD) Excel=SUMIFS($E:$E, $D:$D, “>=” & DATE(YEAR(TODAY()),1,1), $D:$D, “<=” & TODAY())
Show more lines
Text Matching & Wildcards
- Contains “Pro” anywhere Excel=SUMIF($B:$B, “*Pro*”, $E:$E)
Show more lines - Starts with “A” Excel=SUMIF($B:$B, “A*”, $E:$E)
Show more lines - Ends with “-XL” Excel=SUMIF($B:$B, “*-XL”, $E:$E)
Show more lines
OR Logic Patterns
Pattern A: Multiple SUMIFS wrapped in SUM
27. Salesperson is “John” OR “Anita” (same region filter)
=SUM(SUMIFS($E:$E, $A:$A, “John”, $C:$C, “North”),SUMIFS($E:$E, $A:$A, “Anita”, $C:$C, “North”))
Pattern B: Helper column for “OR” category
28. Create helper column IsTopBrand = TRUE for Brand in {“X”, “Y”}, then:
=SUMIFS($E:$E, $G:$G, TRUE, $C:$C, "Online")
Pattern C: Criteria using arrays (new Excel with dynamic arrays)
29. Sum for multiple regions at once (dynamic array + SUM)
(Works in Microsoft 365 / Excel for the web / Excel 2021+)
=SUM(SUMIFS($E$2:$E$1000, $C$2:$C$1000, {"North","East"}))
Pattern D: SUMPRODUCT for advanced OR logic
30. Sum where (Region = North OR East) AND Status = Approved
=SUMPRODUCT(($C$2:$C$1000={"North","East"})*($F$2:$F$1000="Approved")*$E$2:$E$1000)
(Array expansion adds the two regions; SUMPRODUCT multiplies booleans with amounts.)
Edge Cases & Common Pitfalls (and Fixes)
- Mismatched Range Sizes
- Problem:
SUMIFS(D2:D100, A2:A50, "John")→ size mismatch. - Fix: Ensure all ranges align in rows:
D2:D100withA2:A100.
- Problem:
- Wrong Argument Order (Switching Between Functions)
- SUMIF expects
rangefirst; SUMIFS expectssum_rangefirst. Double‑check!
- SUMIF expects
- Dates Stored as Text
- Symptom: Date comparisons fail.
- Fix: Normalize dates with
DATEVALUE()or paste special → Values; ensure column format = Date.
- Locale Separators (Comma vs Semicolon)
- Some locales use
;instead of,in formulas. Match your Excel’s locale settings.
- Some locales use
- Hidden Spaces / Non‑Breaking Spaces
- Symptom: Text criteria don’t match.
- Fix: Clean with
TRIM()orCLEAN()in helper columns.
- Case Sensitivity
- SUMIF/SUMIFS are not case‑sensitive.If you need case‑sensitive sums, use
SUMPRODUCTwithEXACT().
Show more lines - SUMIF/SUMIFS are not case‑sensitive.If you need case‑sensitive sums, use
- Blanks & Zeros
- To exclude blanks, use criteria
"<>"Excel=SUMIFS($E:$E, $B:$B, “<>”)
Show more lines - To exclude zeros:
"<>0"
- To exclude blanks, use criteria
- Wildcards with Literal
*or?- Escape with
~e.g., find*Pro?literally: Excel=SUMIF($B:$B, “~*Pro~?”, $E:$E)
Show more lines
- Escape with
- #VALUE! Errors with Concatenation
- Ensure concatenation uses
&with proper quotes:">" & G1, not">" G1.
- Ensure concatenation uses
- Performance on Very Large Ranges
- Avoid whole‑column references on massive sheets if performance lags. Prefer Excel Tables or bounded ranges.
Best Practices & Performance Tips
- Use Excel Tables (Ctrl+T) and structured references—readable, auto-expanding, and less error‑prone.
- Keep ranges consistent in size and sheet.
- Leverage helper columns for complex OR logic or pre-classifications.
- Minimize volatile functions (like
OFFSET,INDIRECT) near SUMIFS. - Group date logic into start/end cells (e.g.,
H1= start date,I1= end date). - Document your logic with comments or a “Read Me” sheet.
- Check with PivotTables to validate results quickly.
Excel Table & Structured References
Assume your data table is named Sales with columns: [Date] [Salesperson] [Region] [Channel] [Amount].
Sum by salesperson “Hussain” in North:
=SUMIFS(Sales[Amount], Sales[Salesperson], "Hussain", Sales[Region], "North")
Sum MTD:
=SUMIFS(Sales[Amount], Sales[Date], ">=" & EOMONTH(TODAY(),-1)+1, Sales[Date], "<=" & TODAY())
Benefits:
- Formulas auto-extend when new data rows are added.
- Column names improve readability.
- Easier to audit and maintain.
Alternatives: DSUM, FILTER+SUM, PivotTables, LET/LAMBDA
1) DSUM (Database Function)
Good for structured datasets with headers and criteria ranges.
=DSUM(A1:E1000, "Amount", H1:I2)
2) FILTER + SUM (Microsoft 365)
Elegant and readable with dynamic arrays.
=SUM(FILTER(Sales[Amount], (Sales[Salesperson]="John")*(Sales[Region]="North")))
3) PivotTables
No formulas required; drag-and-drop fields, add filters, slicers, and get robust summaries. Great for exploration and validation.
4) LET + LAMBDA (Microsoft 365)
Create reusable functions for repeated SUMIFS patterns.
Excel
=LET(rngAmt, Sales[Amount],rngReg, Sales[Region],rngRep, Sales[Salesperson],SUMIFS(rngAmt, rngRep, "John", rngReg, "North"))
You can wrap into LAMBDA and reuse as a custom function in Name Manager.
FAQs
Q1) What’s the main difference between SUMIF and SUMIFS?
A: SUMIF applies one condition, SUMIFS applies multiple conditions across one or more columns.
Q2) Can I use SUMIFS with only one condition?
A: Yes. It works fine, but SUMIF is simpler for that case.
Q3) How do I sum between two dates?
A: Use two criteria in SUMIFS with >= and <=:
=SUMIFS(AmountRange, DateRange, ">=" & StartDate, DateRange, "<=" & EndDate)
Q4) Why isn’t my date criteria working?
A: Your dates may be stored as text. Convert them (e.g., DATEVALUE, re-enter, or change format).
Q5) Can I do OR logic with SUMIFS?
A: Use multiple SUMIFS wrapped in SUM, a helper column, or dynamic arrays:
=SUM(SUMIFS(Amount, Region, {"North","East"}))
Q6) Are SUMIF/SUMIFS case-sensitive?
A: No. Use SUMPRODUCT with EXACT() for case-sensitive sums.
Q7) Do ranges need to match size?
A: Yes—especially in SUMIFS, all criteria ranges must match sum_range in size.
Q8) What about performance on big files?
A: Prefer Tables with structured references, minimize volatile functions, and validate with PivotTables.
SUMIF vs SUMIFS Quiz
Test your understanding—select the best answer for each question, then click Submit.
-
SUMIF supports how many criteria?
-
Which argument comes first in SUMIFS?
-
Which function is best for multiple conditions?
-
What is wrong with this formula?
=SUMIFS(B2:B20, A2:A10, "John")
-
Can SUMIF compare dates?
-
SUMIFS(C2:C100, A2:A100, ">100")adds data based on:
-
Which function is newer?
Conclusion
SUMIF and SUMIFS are foundational Excel skills for anyone who analyzes data—whether it’s sales, expenses, inventory, HR, or ecommerce.
- Use SUMIF for quick, single‑criterion summaries (simple category totals, thresholds, or keyword matches).
- Use SUMIFS for robust analytics with multiple filters (region + channel + date range + status).
- Combine them with Tables, helper columns, dynamic arrays, PivotTables, and LET/LAMBDA to build fast, maintainable dashboards.
Want to download working files, click on the below:

