Every time someone sends me a sales tracker full of manual filtering and calculator totals, the first two functions I reach for are SUMIFS and COUNTIFS. Pivot Tables are great for exploratory summaries, but when you need clean, fixed-layout monthly dashboards or automated KPI scorecards, nothing beats SUMIFS and COUNTIFS.
In this hands-on guide, I will walk you through exact syntax, date-range filtering, partial text matching with wildcards, and the one trap that quietly breaks multi-criteria formulas.
SUMIF vs. SUMIFS: Why I Almost Always Use SUMIFS
Excel has both SUMIF (single condition) and SUMIFS (multiple conditions). Even if I only have one condition today, I still write SUMIFS. Why? First, the sum range always comes first in SUMIFS, which stays consistent when you add a second or third condition next month. Second, you never have to rewrite the formula later when your manager asks to filter by Region and Status.
1. SUMIFS Syntax & Real Business Example
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Suppose your sales log has Region in A2:A500, Deal Status in B2:B500, Order Date in C2:C500, and Revenue in D2:D500.
To calculate total Revenue for North region deals marked Closed:
=SUMIFS($D$2:$D$500, $A$2:$A$500, "North", $B$2:$B$500, "Closed")
Pro tip: instead of hardcoding "North" inside quotes, point to a label cell like F2 so you can drag the formula down across every region effortlessly:
=SUMIFS($D$2:$D$500, $A$2:$A$500, F2, $B$2:$B$500, "Closed")
2. COUNTIFS Syntax & Practical Example
COUNTIFS counts how many rows satisfy all your conditions at the same time (an AND relationship):
=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
To count how many North deals are Closed and worth more than 1,000:
=COUNTIFS($A$2:$A$500, "North", $B$2:$B$500, "Closed", $D$2:$D$500, ">1000")
Notice the quotes around ">1000". Any comparison operator (>, <, >=, <>) must be wrapped in quotes, or joined to a cell reference with an ampersand: ">" & G2.
3. Filtering Between Two Dates (Monthly & Quarterly Totals)
This is where most people get stuck. To sum Revenue in D2:D500 between a Start Date in G1 and End Date in G2, reference the same date column twice:
=SUMIFS($D$2:$D$500, $C$2:$C$500, ">=" & G1, $C$2:$C$500, "<=" & G2)
If your sheet has real Excel dates stored properly (not text strings), this updates instantly whenever you change G1 or G2.
4. Partial Text Matching With Wildcards (* and ?)
Need to sum all products whose name contains the word "Template" anywhere inside the cell? Wrap the word in asterisks:
=SUMIFS($D$2:$D$500, $E$2:$E$500, "*Template*")
*matches any number of characters before or after your text.?matches a single character (helpful for SKU codes likeSKU-?01).
3 Common Mistakes That Return Zero or #VALUE!
- Mismatched Range Sizes: If
sum_rangeisD2:D500andcriteria_range1isA2:A499, Excel throws#VALUE!. Every range in the formula must cover the exact same row count—or better yet, use structured Table columns liketblSales[Revenue]! - Numbers or Dates Stored as Text: If your sum returns
0even though rows visibly exist, check whether dates or amounts are aligned left as text. - Trailing Spaces:
"North "does not equal"North". Clean your input column first or review our Data Cleaning in Excel Guide.
Pair SUMIFS with lookup formulas using our VLOOKUP vs. HLOOKUP Guide or build visual charts on top with Excel KPI Dashboard Training.
Need Custom Excel Work or 1-on-1 Training? Hire Pankaj Kumar Directly
Skip marketplace commissions and middleman delays. Work directly with a Top-Rated Freelancer (15+ years experience, 756+ completed projects, 25,000+ hours, 98% job success) for custom Excel templates, VBA macros, Google Sheets automation, MIS dashboards, or team training.
Direct Hiring Perks: Clear milestone scope, fast turnaround, NDA confidentiality, and post-delivery support. Get a Free Quote / Hire Now | View Portfolio | Browse Templates & Services
Frequently Asked Questions
Can SUMIFS handle OR conditions (like North OR South)?
Standard SUMIFS uses AND logic. For OR logic on the same column, wrap it in SUM with an array constant: =SUM(SUMIFS(D2:D500, A2:A500, {"North","South"})).
Is SUMIFS faster than SUMPRODUCT?
Yes. On sheets with 50,000+ rows, SUMIFS and COUNTIFS calculate noticeably faster than SUMPRODUCT.