=SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
| Parameter | Required | Description |
|---|---|---|
| sum_range | Yes | The range of cells to sum. |
| criteria_range1 | Yes | The first range to evaluate against a criterion. |
| criterion1 | Yes | The condition for criteria_range1. Can be a number, text, expression, or cell reference. |
| criteria_range2, criterion2, ... | No | Additional range/criterion pairs. Up to 127 pairs are supported. |
SUMIFS is the multi-condition version of SUMIF. It sums values in a range where all specified conditions are met simultaneously. If you need to filter by product and region and date range, SUMIFS is your function.
SUMIFS checks each row against every criterion you provide. A value in sum_range is included in the total only when all corresponding criteria are satisfied. It uses AND logic — every condition must be true.
In SUMIFS, the sum_range comes first, followed by the criteria pairs. This is the opposite order from SUMIF:
SUMIF: =SUMIF(criteria_range, criterion, sum_range)
SUMIFS: =SUMIFS(sum_range, criteria_range1, criterion1, ...)=SUMIFS(C2:C100, A2:A100, "Widget", B2:B100, "East")Sums values in column C where column A is "Widget" and column B is "East".
=SUMIFS(D2:D100, E2:E100, ">="&DATE(2025,1,1), E2:E100, "<="&DATE(2025,12,31))Sums values in column D where column E falls within the year 2025.
=SUMIFS(C2:C100, A2:A100, "Premium", C2:C100, ">1000")Sums values in column C where column A is "Premium" and the value itself exceeds 1000.
=SUMIFS(D2:D100, A2:A100, G1, B2:B100, G2)Sums column D where column A matches cell G1 and column B matches cell G2. This makes your formula dynamic — change G1 or G2 to update the result instantly.
All standard operators work the same as in SUMIF:
| Operator | Example Criterion |
|---|---|
| Greater than | ">500" |
| Less than | "<100" |
| Greater than or equal | ">="&D1 |
| Less than or equal | "<="&TODAY() |
| Not equal to | "<>Cancelled" |
SUMIFS supports the same wildcards as SUMIF:
* — matches any sequence of characters? — matches any single character=SUMIFS(C2:C100, A2:A100, "Pro*", B2:B100, "Active")Sums where column A starts with "Pro" and column B is "Active".
=SUMIFS(D2:D500, B2:B500, "Sarah", C2:C500, ">="&DATE(2025,3,1), C2:C500, "<"&DATE(2025,4,1))=SUMIFS(C2:C100, A2:A100, "<>Returns")Sums all values in C where A is anything except "Returns".
=SUMIFS(E2:E100, A2:A100, "Laptop", B2:B100, "Online", D2:D100, ">=4")Sums column E where product is "Laptop", channel is "Online", and rating is 4 or higher.
DATE() function or a cell reference — avoid typing dates as text.SUMIFS only supports AND logic natively. To get OR logic, add multiple SUMIFS:
=SUMIFS(C:C, A:A, "Apples") + SUMIFS(C:C, A:A, "Oranges")Or use SUMPRODUCT for more flexibility:
=SUMPRODUCT((A2:A100="Apples")+(A2:A100="Oranges"), C2:C100)=SUMIFS(C2:C100, A2:A50, "X") will error.A regional sales manager needs to see Q1 revenue for the "Enterprise" segment in the "West" region. Using SUMIFS, they type =SUMIFS(E:E, B:B, "Enterprise", C:C, "West", D:D, ">="&DATE(2025,1,1), D:D, "<"&DATE(2025,4,1)) to get the exact figure without any manual filtering.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.