Cellwise Try it free

Excel guide · 3 min read

SUMIFS with multiple criteria in Excel

Quick answerSUMIFS puts the range to add first, then pairs of criteria range and criteria: =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.

ABCDEFG
1RegionProductRepAmountRegion
2EastLaptopKim1850East
3WestMonitorRaj420
4EastMonitorKim390
5EastLaptopLee2100
6WestLaptopRaj1720
7NorthDockAna260
8EastDockLee240
9WestMonitorAna455

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.

=SUMIFS(D2:D9,A2:A9,"East",B2:B9,"Laptop")

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.

=SUMIFS(D2:D9,A2:A9,"West",D2:D9,">=450")

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.

=SUMIFS(D2:D9,A2:A9,G2,C2:C9,"Kim")

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.

=SUMIFS(D2:D9,A2:A9,"East",B2:B9,"Laptop")+SUMIFS(D2:D9,A2:A9,"East",B2:B9,"Dock")

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.

=SUMIFS(D2:D9,D2:D9,">=300",D2:D9,"<=1000")

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

Related guides

Updated