=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
| Argument | Required | Description |
|---|---|---|
| sum_range | Required | The column containing the values to add up. Only values from rows that meet all specified conditions will be included in the total. This is always the first argument in SUMIFS, unlike SUMIF where it is the third. |
| criteria_range1 | Required | The first column to test against a condition. SUMIFS checks each row in this column against criteria1 and only includes the row in the sum if the condition is met. |
| criteria1 | Required | The condition for criteria_range1. Can be a value, text in quotes, comparison expression like >100, wildcard, or cell reference. Only rows satisfying this condition and all other conditions are summed. |
| criteria_range2, criteria2 | Optional | Additional range and condition pairs. Each pair adds another AND condition that must be satisfied. Up to 127 criteria range and criteria pairs are supported. |
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Region | Product | Quarter | Revenue | SUMIFS Result |
| 2 | North | Widget A | Q1 | 7200 | =SUMIFS(D2:D11,A2:A11,"North",C2:C11,"Q1") |
| 3 | South | Widget B | Q1 | 8500 | |
| 4 | North | Widget C | Q2 | 3100 | |
| 5 | East | Widget A | Q1 | 6800 | |
| 6 | North | Widget B | Q1 | 9500 | 16700 |
| 7 | West | Widget C | Q2 | 5400 | |
| 8 | North | Widget A | Q2 | 4300 | |
| 9 | South | Widget B | Q1 | 7100 | |
| 10 | East | Widget C | Q1 | 6200 | |
| 11 | North | Widget B | Q2 | 8800 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Department | Salary | SUMIFS Result |
| 2 | Alice | Sales | 62000 | =SUMIFS(C2:C11,B2:B11,"Sales",C2:C11,">50000") |
| 3 | Bob | Marketing | 48000 | |
| 4 | Carol | Sales | 55000 | 175000 |
| 5 | David | Sales | 45000 | |
| 6 | Eve | Engineering | 71000 | |
| 7 | Frank | Marketing | 53000 | |
| 8 | Grace | Sales | 58000 | |
| 9 | Hank | HR | 42000 | |
| 10 | Iris | Engineering | 67000 | |
| 11 | James | Sales | 39000 |
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Order | Customer | Amount | Date | Q1 Total |
| 2 | ORD-001 | Acme | 4500 | 2024-01-15 | =SUMIFS(C2:C11,D2:D11,">="&DATE(2024,1,1),D2:D11,"<"&DATE(2024,4,1)) |
| 3 | ORD-002 | Beta | 2300 | 2024-02-08 | |
| 4 | ORD-003 | Gamma | 8100 | 2023-12-20 | 22400 |
| 5 | ORD-004 | Delta | 5600 | 2024-03-30 | |
| 6 | ORD-005 | Epsilon | 3200 | 2024-04-05 | |
| 7 | ORD-006 | Zeta | 1800 | 2024-01-28 | |
| 8 | ORD-007 | Eta | 6700 | 2024-02-14 | |
| 9 | ORD-008 | Theta | 9400 | 2023-11-30 | |
| 10 | ORD-009 | Iota | 1500 | 2024-03-12 | |
| 11 | ORD-010 | Kappa | 4100 | 2024-05-01 |
=SUMIFS(Salary,Department,"Engineering",HireDate,">"&DATE(2021,1,1))
=SUMIFS(InvoiceAmt,Vendor,"Acme Corp",InvoiceDate,">="&DATE(2024,1,1),InvoiceDate,"<="&DATE(2024,1,31))
=SUMIFS(Amount,CostCentre,"IT",Type,"CapEx",Amount,">10000")
=SUMIFS(Quantity,Category,"Electronics",StockLevel,"<50")
=SUMIFS(Hours,Team,"Dev",Priority,"High",Date,">="&StartDate,Date,"<="&EndDate)
=SUMIFS(C:C,A:A,F1,C:C,">"&G1)
=SUMIFS(Revenue,OrderDate,">="&DATE(2024,1,1),OrderDate,"<="&DATE(2024,12,31))
=SUMIFS(Revenue,ProductCode,"PRD-A*",Region,"North")