Excel guide · 3 min read
SUMIFS with multiple criteria in Excel
=SUMIFS(D2:D9,A2:A9,"East",B2:B9,"Laptop") adds the amounts where the region is East and the product is Laptop. Every condition must match. For OR logic, add two SUMIFS together.Sample data
Every result on this page was calculated from this sheet by the same spreadsheet engine the Cellwise app uses.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Region | Product | Rep | Amount | Region | ||
| 2 | East | Laptop | Kim | 1850 | East | ||
| 3 | West | Monitor | Raj | 420 | |||
| 4 | East | Monitor | Kim | 390 | |||
| 5 | East | Laptop | Lee | 2100 | |||
| 6 | West | Laptop | Raj | 1720 | |||
| 7 | North | Dock | Ana | 260 | |||
| 8 | East | Dock | Lee | 240 | |||
| 9 | West | Monitor | Ana | 455 |
Two text criteria
The first argument is what to add, here the amounts in D. Then come the conditions, each as a range and a criteria. Rows are only added when every condition matches.
Result: 3950
Two East laptop sales, 1,850 and 2,100, add up to 3,950.
Text plus a number condition
Put the comparison operator in quotes with the number. You can even use the sum range as a criteria range, as here, to only add amounts of 450 or more.
Result: 2175
West sales of at least 450 are 1,720 and 455, which total 2,175.
Criteria from a cell
Point a criteria at a cell (G2) so you can switch the region from a dropdown without editing the formula. For comparisons, join the operator and the cell: ">="&H2.
Result: 2240
G2 says East. Kim's East sales are 1,850 and 390, for 2,240.
OR logic: add SUMIFS together
SUMIFS has no built-in OR. For "East sales of laptops or docks", write one SUMIFS per product and add them. A row can only be one product, so nothing is double-counted.
Result: 4190
East laptops (3,950) plus East docks (240) gives 4,190.
Not equal, wildcards and between
"<>North" means any region except North. Wildcards work too: "Mon*" matches Monitor. For a band of values, use the same column twice with ">=" and "<=". This one totals mid-size sales between 300 and 1,000.
Result: 1265
Sales of 420, 390 and 455 fall in the band, for a total of 1,265.
Build a summary table, or pick another tool
SUMIFS shines in a summary grid. List regions down a column and products across a row, then write one formula with mixed references and copy it across the grid. For a grid with regions in F2:F4 and products in G1:I1, the formula in G2 would be =SUMIFS($D$2:$D$9,$A$2:$A$9,$F2,$B$2:$B$9,G$1).
Lock the data ranges with $ so they never move, lock the column of the region label and the row of the product label, and every cell picks up the right pair. When your data grows, convert it to a table (Ctrl+T) and use structured references so the ranges grow too.
Use SUMIFS for AND conditions on plain columns; it is the fastest and the easiest to read. Use SUMPRODUCT when you need OR across different columns or a calculation inside the condition, such as matching on the month of a date. Use a PivotTable (Insert > PivotTable) when you want totals for every combination at once and do not need the numbers inside other formulas.
Common mistakes
Putting the sum range last, as in SUMIF
SUMIF is SUMIF(range, criteria, sum_range), but SUMIFS starts with sum_range. Mixing them up adds the wrong column or errors.
Ranges that do not line up
D2:D9 with A3:A10 compares each amount with the next row's region. Start and end every range on the same rows.
Amounts stored as text
SUMIFS skips text, so imported numbers can make a total too low. Check with ISNUMBER and convert with Data > Text to Columns.
FAQ
How many criteria can SUMIFS have?
Up to 127 pairs of criteria range and criteria. It is available in Excel 2007 and later.
Can SUMIFS sum by date range?
Yes. Use the date column twice: =SUMIFS(D:D,E:E,">="&DATE(2026,1,1),E:E,"<"&DATE(2026,2,1)) totals January 2026.
What can I use for more complex conditions?
SUMPRODUCT handles conditions SUMIFS cannot, such as OR across columns: =SUMPRODUCT(((A2:A9="East")+(C2:C9="Ana")>0)*D2:D9).
Functions used
SUMIFSAdds with several conditionsSUMIFAdds cells that matchSUMPRODUCTMultiply then addDATEBuilds a date
Related guides
- COUNTIFS with multiple criteria in Excel
- How to sum if a cell contains text in Excel
- Excel IF statement with multiple conditions
- Excel formulas cheat sheet: the 25 everyone should know
- How to make a running total in Excel
Updated