Excel SUMIFS Function

SUMIFS adds values only when multiple conditions are all satisfied.

Use it for multi-condition totals, such as revenue by region and month, hours by employee and project, or costs for one category inside a date range.

1
Choose values to add The sum range supplies the numbers
2
Add criteria pairs Each pair tests matching cells
3
Add matching values Every condition must pass

SUMIFS syntax & arguments

Syntax

=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Required Optional
  1. 1

    sum_range

    Required

    The cells to add when all criteria pass.

  2. 2

    criteria_range1

    Required

    The first range of cells to test.

  3. 3

    criteria1

    Required

    The condition that cells in criteria_range1 must meet. It can be a number, text, cell reference, expression such as ">100", or wildcard pattern.

  4. 4

    criteria_range2, criteria2

    Optional Repeatable

    Additional range-and-criteria pairs. Each extra criteria range must line up with sum_range, and all criteria must pass before the matching value is added.

Example

=SUMIFS(D2:D50, B2:B50, "East", C2:C50, "Complete")

Add values in D2:D50 where B2:B50 is East and the matching cell in C2:C50 is Complete.

SUMIFS caveats

SUMIFS is the standard tool for conditional totals, but its argument order and range alignment are easy places to make mistakes.

  • The sum range comes first

    Unlike SUMIF, SUMIFS starts with sum_range, then uses range-and-criteria pairs.

  • Criteria ranges must align

    Every criteria range should cover the same rows or columns as sum_range so each test lines up with the value being added.

  • All conditions are AND logic

    A value is added only when every criteria pair passes for the same row or position.

  • Operators usually need quotes

    Criteria such as ">100" or "<>Cancelled" must be written as text.

Need counts instead? Use COUNTIFS when matching rows should be counted rather than summed.

Intro SUMIFS practice problem

Solve the intro problem directly here, or open it on its own page.

Open full problem

Advanced SUMIFS practice problems

Use SUMIFS alongside other Excel functions in realistic, less-prescriptive challenges.