Formualizer Docs

SUMIFS

Adds values that satisfy multiple criteria.

SUMIFS applies all criteria pairs with logical AND and sums the matching cells.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

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

Arguments

ArgumentTypeRequiredDefault
sum_rangeanyRequired—
criteria_range1anyRequired—
criteria1anyRequired—
criteria_range2anyOptional—
criteria2anyOptional—

Accepts a variable number of arguments. Minimum: 3.

Differences from Excel

Formualizer accepts array constants as ranges. Excel requires references. An invalid INDIRECT result in the result range can raise #NAME? in Formualizer, where Excel returns #REF!.

Remarks

  • An equality criterion for a date or number ("10/26/1999", "36459", 36459) also matches text cells holding that date; <> and ordering criteria do not read date text.
  • The first argument is always the sum target range.
  • Criteria are supplied in (criteria_range, criteria) pairs.
  • Criteria ranges are broadcast/padded according to engine matching rules.

Examples

Aggregate numbers from only the East records.

Formula =SUMIFS(A1:A3,B1:B3,"East")

Input cells
AB
110"East"
250"West"
320"East"

Expected result 30

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Add a second criterion so both conditions must hold.

Formula =SUMIFS(A1:A3,B1:B3,"East",C1:C3,"<5")

Input cells
ABC
110"East"2
250"West"4
320"East"6

Expected result 10

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Aggregate the only row in a single-row data set.

Formula =SUMIFS(A1:A1,B1:B1,"East",C1:C1,2)

Input cells
ABC
110"East"2

Expected result 10

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Sum with two conditions

Formula =SUMIFS(C1:C3, A1:A3, "East", B1:B3, ">=2025")

Input cells
ABC
1"East"202410
2"East"202520
3"West"202530

Expected result 20

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

How are multiple SUMIFS criteria combined?

All criteria pairs are applied with logical AND; every condition must match.

What if criteria range sizes differ?

Ranges are broadcast/padded under engine rules instead of strict Excel-size rejection.

Implementation

Engine source

On this page