SUMIFS Function

SUMIFS Function

SUMIFS Function

Sums values that satisfy multiple conditions. SUMIFS is used for AND-based aggregation across several fields such as product, region, date, or threshold.

ExcelClash Team
PUBLISHED

Summary

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.

Purpose

Sum values matching multiple criteria

Returns the total of values that meet all specified conditions. Each added condition further narrows the result set.

Return Value

A multi-condition total

Returns the sum of matching rows. If no row satisfies all conditions, the result is 0.

Syntax

=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.

Arguments

  • sum_range - [Required] The cells to add.
  • criteria_range1 - [Required] The first range to test.
  • criteria1 - [Required] The condition applied to the first range.
  • criteria_range2, criteria2, ... - [Optional] Additional range-condition pairs.

SUMIFS vs Related Functions

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.

Using SUMIFS

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.

  • Keep all criteria ranges aligned with the sum range.
  • Use quoted operators for numeric criteria such as ">150".
  • Use two date conditions on the same column when defining a date interval.

Example 1 - Sum Where Two Conditions Both Match

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
Check Answer
Challenge #1
Target: Sheet1!F1
Two-Condition Sum

In cell F1, use SUMIFS to sum C1:C5 (sales) where A1:A5 is "Apples" AND B1:B5 is "North". Expected: 400.

Example 2 - Combine a Category with a Threshold

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
Check Answer
Challenge #2
Target: Sheet1!F2
Category and Threshold

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.

Example 3 - Use Cell-Driven Criteria

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
Check Answer
Challenge #3
Target: Sheet1!F3
Dynamic Criteria from Cells

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.

Example 4 - Filter One Group While Excluding Another

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
Check Answer
Challenge #4
Target: Sheet1!F4
Exclude One While Filtering Another

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 uses AND logic, not OR logic.
  • The sum range comes first, unlike SUMIF.
  • All criteria ranges should match the dimensions of the sum range.

Conclusion Recap

  • Summary: SUMIFS sums values that satisfy multiple conditions.
  • Syntax: =SUMIFS(sum_range,criteria_range1,criteria1,...).
  • Key behavior: Every condition must be true for a row to be included.
  • Practical usage: Multi-field reporting, date-range totals, and segmented analysis.
Tactical Arena
Select Scenario:
Share SUMIFS Function!

Tell your friends about this post

Discussion

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster.

© 2026 ExcelClash, Inc. All rights reserved.