
Sums values that satisfy multiple conditions. SUMIFS is used for AND-based aggregation across several fields such as product, region, date, or threshold.
The Excel SUMIFS function sums values that satisfy multiple conditions. Unlike SUMIF, which tests only one condition, SUMIFS uses AND logic across a series of criteria-range pairs. A row is added to the total only if every condition is true for that row.
That structure makes SUMIFS one of the main reporting functions in Excel. It is used when a workbook needs totals such as one product in one region, one department in one month, or one account category above a threshold. The function is restrictive by design: it narrows the total to the intersection of several filters.
Returns the total of values that meet all specified conditions. Each added condition further narrows the result set.
Returns the sum of matching rows. If no row satisfies all conditions, the result is 0.
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
The most important structural point is that sum_range comes first. After that, criteria are supplied in pairs: a range to test and the condition applied to that range. Microsoft documents up to 127 range-criteria pairs, which gives the function broad coverage for most report logic.
SUMIFS extends the logic of SUMIF by allowing several simultaneous filters. It is still a conditional aggregation function, but its role is specifically to support AND-based reporting across multiple fields.
| Function | Condition Structure | Use When |
|---|---|---|
SUM |
No conditions | You need a plain total |
SUMIF |
One condition | You need a single conditional filter |
SUMIFS |
Multiple conditions with AND logic | You need several simultaneous filters |
SUMPRODUCT |
More flexible array logic | You need custom behavior beyond standard SUMIFS patterns |
SUMIFS is not an OR-logic tool by default. If the worksheet must sum values matching condition A or condition B, that usually requires multiple SUMIFS formulas added together or a different formula structure.
SUMIFS is most effective when the source data is organized as a single normalized table with one row per record and separate columns for each reporting dimension. In that format, each criterion range represents one field, and the sum range represents the measure to aggregate.
It is also common in date-range analysis. A month, quarter, or fiscal-period total can be created by placing two conditions on the date column: one lower bound and one upper bound. That approach is often more reliable than trying to match a month label stored as text.
">150".This example shows the core logic of SUMIFS. A row is counted only if it matches both the product criterion and the region criterion. Rows matching only one of them are excluded from the total.
=SUMIFS(C1:C5,A1:A5,"Apples",B1:B5,"North")
// Matching rows: C1 = 100 and C4 = 300
// Total = 400
In cell F1, use SUMIFS to sum C1:C5 (sales) where A1:A5 is "Apples" AND B1:B5 is "North". Expected: 400.
SUMIFS can mix text and numeric logic in the same formula. Here the row must belong to the Apples category and also exceed the numeric threshold. This pattern appears often in report segmentation and exception analysis.
=SUMIFS(C1:C5,A1:A5,"Apples",C1:C5,">150")
// Only the Apples row with value 300 qualifies
// Total = 300
In cell F2, use SUMIFS to sum C1:C5 where A1:A5 is "Apples" AND value in C1:C5 is greater than 150. Expected: 300.
Referencing criteria from cells turns the formula into a reusable reporting component. A dashboard or parameter area can change the values in G1 and G2, and the SUMIFS result updates without modifying the formula itself.
=SUMIFS(C1:C5,A1:A5,G1,B1:B5,G2)
// G1 = "Apples", G2 = "South"
// Matching row: C3 = 150
In cell F3, use SUMIFS to sum C1:C5 where A1:A5 matches G1 AND B1:B5 matches G2. G1="Apples", G2="South". Expected: 150.
Equality and inequality can be combined in the same SUMIFS call. This allows the worksheet to isolate a subset while explicitly excluding one category inside that subset. The result is often clearer than subtracting one subtotal from another.
=SUMIFS(C1:C5,B1:B5,"North",A1:A5,"<>Apples")
// Matching row: C2 = 200
// Total = 200
In cell F4, use SUMIFS to sum C1:C5 where B1:B5 is "North" AND A1:A5 is NOT "Apples". Expected: 200.
Range alignment is the main structural risk with SUMIFS. If the criteria ranges do not match the shape of the sum range, the result can become unreliable. For that reason, disciplined table structures and consistent column references are especially important when a workbook depends heavily on SUMIFS.
SUMIFS sums values that satisfy multiple conditions.=SUMIFS(sum_range,criteria_range1,criteria1,...).Tell your friends about this post