SUMPRODUCT Function
The SUMPRODUCT
function in Google Sheets multiplies corresponding components in given arrays and returns the sum of those products.
Syntax
SUMPRODUCT(array1, [array2, ...])
array1
: The first array or range.array2, ...
: Additional arrays or ranges to include (optional).
Examples
- Basic Example
Multiply corresponding elements of arrays A1:A3
and B1:B3
and sum the results:
=SUMPRODUCT(A1:A3, B1:B3)
Notes
- Useful for weighted averages and other calculations involving multiple arrays.
Related Functions
MMULT
: Multiply matrices.