=SUMIF(range, criteria, [sum_range])
| Argument | Required | Description |
|---|---|---|
| range | Required | The column or range to check the condition against. SUMIF evaluates each cell in this range against the criteria argument. Typically a column of categories, department names, dates, or region codes. |
| criteria | Required | The condition to match. Text must be in quotes: "Sales". Numbers can be bare: 100. Comparisons use operators: ">500", "<=0", "<>0". Wildcards: "Sales*" matches anything starting with Sales. Cell references: A1 uses whatever value is in A1. Operator plus reference: ">"&A1. |
| sum_range | Optional | The column containing the values to add. Must be the same height as range. If omitted, SUMIF sums the range itself. |
| A | B | C | |
|---|---|---|---|
| 1 | Employee | Department | Sales |
| 2 | Alice | Sales | 12500 |
| 3 | Bob | Marketing | 0 |
| 4 | Carol | Sales | 9800 |
| 5 | David | Engineering | 0 |
| 6 | Eve | Sales | 15200 |
| 7 | Frank | Marketing | 0 |
| 8 | Grace | Sales | 7100 |
| 9 | Hank | HR | 0 |
| 10 | Iris | Sales | 11400 |
| 11 | James | Engineering | 0 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Category | Amount | Total >500 |
| 2 | 2024-01-05 | Travel | 850 | =SUMIF(C2:C11,">500",C2:C11) |
| 3 | 2024-01-08 | Software | 299 | |
| 4 | 2024-01-12 | Travel | 1200 | |
| 5 | 2024-01-15 | Office | 75 | |
| 6 | 2024-01-18 | Travel | 620 | |
| 7 | 2024-01-22 | Software | 450 | |
| 8 | 2024-01-25 | Training | 980 | |
| 9 | 2024-01-28 | Office | 45 | |
| 10 | 2024-01-30 | Travel | 1100 | |
| 11 | 2024-01-31 | Software | 520 |
=SUMIF(A:A,"North",C:C)
=SUMIF(B:B,"Office Depot",D:D)
=SUMIF(C:C,"Alice",D:D)
=SUMIF(B:B,">1000",B:B)
=SUMIF(A:A,"Marketing*",C:C)
=SUMIF(B:B,E2,C:C)
=SUMIF(A:A,"Sales*",C:C)
=SUMIF(B:B,"Sales",C:C)