SUMIFS combines conditions with AND. To sum where a field is “A” or “B,” add SUMIFs together — or use SUMPRODUCT with added condition arrays.
The example
East and West totals combined.
| A | B | |
|---|---|---|
| 1 | Region | Sales |
| 2 | East | 100 |
| 3 | West | 150 |
| 4 | South | 80 |
| 5 | East or West | 250 |
The formula
Array criteria, then SUM:
How it works
Add the matches together:
SUMIF(region, {"East","West"}, amount)returns an array of two totals.- Wrapping in
SUMadds them — the OR sum. - For OR with SUMPRODUCT:
=SUMPRODUCT(((region="East")+(region="West"))*amount)— add the condition arrays. - Watch double-counting: this works because a row can’t be both East and West.
Overlapping OR conditions double-count. If a row could satisfy two of your OR conditions, the additive approach counts it twice. For mutually-exclusive values (like region) it’s exact; otherwise use a SUMPRODUCT with SIGN or a deduplicating approach.
Try it: interactive demo
Lines “region,sales”; sum East or West.
Variations
SUMPRODUCT OR
Add the arrays:
OR within AND
Region East/West AND year 2026:
Contains either word
Wildcards:
Pitfalls & errors
Mutually exclusive only (additive). Adding matches double-counts rows that satisfy two conditions. Fine for distinct values like region.
Array braces. Use {"East","West"} with commas (or your locale’s separator).
Don’t nest OR inside SUMIFS arguments. SUMIFS is AND-only; build OR by summing.
Practice workbook
Frequently asked questions
How do I sum with OR conditions in Excel?
What's the SUMPRODUCT version?
Why might an OR sum double-count?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class