Excel Guide

How to Use SUMIFS in Excel: Multiple Conditions, the Flipped Argument Order, and the OR Workaround

=SUMIFS(sum_range, criteria_range1, criteria1, ...). SUMIFS adds up only the rows where every condition matches. It is the function for questions like "total sales in the West region over $1,000" — one condition is SUMIF's job, two or more is SUMIFS'. Practise it: SUMIFS — 10 Excel practice problems.

SUMIF first: one condition

SUMIF takes three arguments — the range to check, the condition, and the range to actually sum (if it is different from the range you checked):

=SUMIF(A:A, "West", B:B)

Read it left to right: "look through column A, find rows equal to 'West', and sum the matching rows in column B." The first range is what gets tested; the third is what gets added up. Worked through on PractiseSkills' SUMIF topic page, =SUMIF(A1:A5,"West",B1:B5) over West 120, East 80, West 200, North 90, West 60 returns 380.

If the range you test is the same range you sum, the third argument can be left out:

=SUMIF(A1:A5, ">100")

That sums only the expenses over 100 — 150 + 200 = 350 in the topic's example.

SUMIFS: more than one condition — and the order flips

Once you need two or more conditions, switch to SUMIFS. Note the argument order flips, with the sum range coming first:

=SUMIFS(C:C, A:A, "West", B:B, ">1000")

This sums column C where column A is "West" and column B is greater than 1000. Every condition must match — SUMIFS has no built-in "or" logic between range/criteria pairs.

Easy mix-up: SUMIF puts the sum range last; SUMIFS puts it first. Swapping them by habit is one of the most common formula errors — if your total looks wrong, check the argument order first.

A worked example from PractiseSkills' SUMIFS topic page: regions in A1:A4, amounts in B1:B4, sale totals in C1:C4.

=SUMIFS(C1:C4, A1:A4, "West", B1:B4, ">100")

Rows 1 and 4 match (West with amounts 150 and 300); rows 2 and 3 fail one condition each. The result is 25 — 10 + 15, the totals from the two matching rows only.

Criteria beyond exact matches

The condition in SUMIF/SUMIFS can be a comparison, not just an exact value:

=SUMIF(B:B, ">1000", B:B) =SUMIF(A:A, "West*", B:B)

The first sums everything over 1,000. The second uses a wildcard: "West*" matches any text starting with "West", so "West", "Western" and "Westfield" would all count. Comparison operators (>, <, >=, <=, <>) always go inside quotes, joined to the number, as in ">100".

When SUMIFS can't do it: the OR case

SUMIFS only supports AND logic between conditions. For more complex logic — like summing where region is West or East — SUMPRODUCT with array comparisons is the more flexible (if less readable) tool. For most everyday spreadsheets, though, SUMIFS covers the vast majority of cases.

Practise it, don't just read it

Reading the pattern once rarely sticks; writing the formula against a data table does. PractiseSkills' SUMIF topic works through 10 problems step by step — sum sales for one region, expenses over a threshold, orders from a specific customer — and its SUMIFS topic works through 10 more, from summing sales from a region above a value to summing revenue for a product above a quantity and hours for a project in a status. On each topic page, 3 of the 10 exercises are free with no sign-up needed, and you are graded on the formula you write.

Read the full explanation, with more examples, in the SUMIF and SUMIFS in Excel: A Practical Guide guide. Then try SUMIF Exercises: 10 Excel Practice Problems and SUMIFS Exercises: 10 Excel Practice Problems, or browse all topics on the practice hub.

Try it yourself

Practice SUMIF and SUMIFS with real interactive exercises and instant feedback.

Start practicing SUMIFS →