Summing Across Conditions With SUMIFS
Total values that meet several criteria at the same time.
Summing Across Conditions With SUMIFS is a free Excel Formulas Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
When One Condition Isn't Enough
You already know SUMIF totals values that match a single rule, like all sales from the East region. But real questions are usually layered: What were East region sales in January? That's two conditions at once.
This is where SUMIFS shines. The trailing S means it can stack many criteria together, and a row is only added to the total when it passes every test you give it.
In this lesson you'll learn the argument order, write your first multi-criteria sum, and avoid the classic mistakes that trip people up.
The SUMIFS Argument Order
SUMIFS flips the order you might expect from SUMIF. The numbers you add come first, then each condition is given as a pair.
sum_range— the values to totalcriteria_range1,criteria1— the first testcriteria_range2,criteria2— the second test
You can keep adding range and criteria pairs up to 127 conditions. Read the pattern below out loud: sum this, where this equals that, and where this equals that.
=SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2)A Worked Sales Example
Imagine a table where column A holds the Region, column B the Month, and column C the Amount. You want total sales for the East region in January.
The amounts you add live in C:C. The first condition checks A:A for "East", and the second checks B:B for "January". A row only counts when both are true.
=SUMIFS(C:C, A:A, "East", B:B, "January")Every Range Must Be the Same Size
This is the single most common SUMIFS error. The sum_range and every criteria_range must have identical dimensions — the same number of rows and columns.
If your sum_range is C2:C100 but a criteria range is A2:A99, the formula returns a #VALUE! error because the rows don't line up.
The safest habit is to use the same start and end rows for all ranges, or use whole columns like A:A consistently.
=SUMIFS(C2:C100, A2:A100, "East", B2:B100, "January")Pointing Criteria at a Cell
Hard-coding "East" in quotes works, but a flexible report lets the user pick. Put the region in cell F1 and the month in F2, then reference those cells as your criteria.
Now changing F1 or F2 instantly recalculates the total. Notice that a plain cell reference needs no quotation marks — the quotes are only for literal text typed inside the formula.
=SUMIFS(C:C, A:A, F1, B:B, F2)Using Comparison Operators
Criteria aren't limited to exact text. You can use comparison operators for numbers by wrapping them in quotes.
">100"— greater than 100"<=50"— less than or equal to 50"<>0"— not equal to zero
Here we total amounts in the East region but only rows where the amount itself is greater than 100. Note the sum_range and a criteria_range can be the same column.
=SUMIFS(C:C, A:A, "East", C:C, ">100")Comparing Against a Cell Value
What if the threshold lives in a cell instead of being typed? You can't just write ">F1" — that searches for the literal text F1. Instead, you join the operator to the cell with the & symbol.
So ">"&F1 builds the criteria greater than whatever F1 contains. This concatenation trick is essential for dynamic, user-driven reports.
=SUMIFS(C:C, A:A, "East", C:C, ">"&F1)Stacking Three or More Conditions
SUMIFS scales easily. Add another range and criteria pair for each new rule. Suppose column D holds the Salesperson. You can total East region sales, in January, made by "Maria".
Each condition narrows the result further. Because SUMIFS uses AND logic, a row must satisfy all three tests to be included in the sum.
=SUMIFS(C:C, A:A, "East", B:B, "January", D:D, "Maria")Wildcards for Partial Matches
Text criteria support wildcards. The asterisk * matches any number of characters and the question mark ? matches exactly one.
"North*"matches North, Northeast, Northwest"*east*"matches anything containing east
This totals amounts for any region that starts with "North", which is handy when your region names share a prefix.
=SUMIFS(C:C, A:A, "North*")SUMIFS vs SUMIF
It's worth memorizing the difference because the argument order is reversed:
- SUMIF:
range, criteria, [sum_range]— the range to test comes first, sum_range is optional and last. - SUMIFS:
sum_range, criteria_range1, criteria1, ...— the sum_range always comes first.
Tip: if you ever have more than one condition, reach straight for SUMIFS. Many people use SUMIFS even for a single criterion just to keep one consistent pattern.
=SUMIFS(C:C, A:A, "East")Reading the Result
When SUMIFS returns 0, it usually means no row matched all conditions — not that the formula is broken. Double-check for hidden spaces in your text, mismatched spelling, or a number stored as text.
A quick diagnostic is to remove one condition at a time. If the total appears once you drop a criterion, that criterion was the one excluding everything. This isolate-and-test habit makes debugging multi-criteria formulas fast.
Quick Check
Test your understanding of the SUMIFS argument order.
Recap: SUMIFS
You can now total numbers across several conditions at once:
SUMIFS(sum_range, range1, crit1, range2, crit2, ...)— sum_range comes first.- All ranges must be the same size, or you get
#VALUE!. - Use
">"&F1to compare against a cell, and*/?for wildcards. - Conditions use AND logic — a row must pass them all.
Next up: counting rows across multiple conditions with COUNTIFS.
=SUMIFS(C:C, A:A, F1, B:B, F2, C:C, ">"&F3)Frequently asked questions
Is the “Summing Across Conditions With SUMIFS” lesson free?
Yes — the full text of “Summing Across Conditions With SUMIFS” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.
What will I learn in “Summing Across Conditions With SUMIFS”?
Total values that meet several criteria at the same time. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Excel Formulas Academy?
No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Summing Across Conditions With SUMIFS” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Excel Formulas Academy lesson?
Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Summing Across Conditions With SUMIFS
- Counting Across Conditions With COUNTIFS
- Averaging Across Conditions With AVERAGEIFS
- Date Ranges in Criteria Functions