Formualizer Docs

SUMPRODUCT

Multiplies aligned values across arrays and returns the sum of those products.

SUMPRODUCT supports scalar or range inputs, applies broadcast semantics, and accumulates the product for each aligned cell position.

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

=SUMPRODUCT(array1, [array2], ...)

Arguments

ArgumentTypeRequiredDefault
array1number (range)Required—
array2number (range)Optional—

Accepts a variable number of arguments. Minimum: 1.

Remarks

  • Non-numeric values are treated as 0 during multiplication.
  • Any explicit error value in the inputs propagates immediately.

Error cases

  • Input shapes must be broadcast-compatible; otherwise SUMPRODUCT returns #VALUE!.

Examples

Multiply matching entries from two arrays and sum the products.

Formula =SUMPRODUCT({1,2,3},{5,10,15})

Expected result 70

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

Include a third array as another factor at each position.

Formula =SUMPRODUCT({1,2,3},{5,10,15},{2,2,2})

Expected result 140

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

One position in each input produces a single product.

Formula =SUMPRODUCT({4},{5})

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

Unequal dimensions leave some positions without a matching factor.

Formula =SUMPRODUCT({1,2,3},{5,10})

Expected result #VALUE!

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

Pairwise sum of products

Formula =SUMPRODUCT({1,2,3}, {4,5,6})

Expected result 32

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

Range-based sumproduct

Formula =SUMPRODUCT(A1:A3, B1:B3)

Input cells
AB
1210
2320
3430

Expected result 200

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

Text entries contribute zero

Formula =SUMPRODUCT({1,"x",3}, {1,1,1})

Expected result 4

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

Why does SUMPRODUCT return #VALUE! with some array shapes?

The argument arrays must be broadcast-compatible; incompatible shapes raise #VALUE!.

How are text values handled in multiplication?

Non-numeric values are treated as 0, unless an explicit error is present.

Implementation

Engine source

On this page