1. Home
  2. Functions
  3. Math
  4. SUMPRODUCT

SUMPRODUCT function

Multiplies matching items of arrays or ranges and returns the sum of those products.

Syntax

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

Arguments

ArgumentRequiredDescription
array1RequiredThe first range or array
array2OptionalMore ranges or arrays of the same size

How to use SUMPRODUCT

SUMPRODUCT takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =SUMPRODUCT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=SUMPRODUCT({1,2,3}, {4,5,6})Result 32
=SUMPRODUCT(A1:A2, B1:B2)Result 26
Data in the sheet
AB
124
236
=SUMPRODUCT({1,2}, {1,2,3})Result #VALUE!

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.