SUMPRODUCT function in Google Sheets
Calculates the sum of the products of corresponding entries in two equal-sized arrays or ranges.
=SUMPRODUCT(array1, [array2, ...])SUMPRODUCT syntax and parameters
Two arguments, one required.
- array1arrayRequired
The first array or range whose entries will be multiplied with corresponding entries in the second such array or range.
- array2arrayRepeating
[ OPTIONAL - {1,1,1,...} with same length as array1 by default ] - The second array or range whose entries will be multiplied with corresponding entries in the first such array or range.
SUMPRODUCT examples
Formulas you'll actually reuse.
Order total from quantity × unit price, no helper column:
=SUMPRODUCT(B2:B50, C2:C50)Result
12480.5A conditional sum with array logic — like SUMIFS, but OR is a + away:
=SUMPRODUCT((A2:A200 = "West") * (C2:C200 > 1000) * C2:C200)Result
41200
SUMPRODUCT in Excel
Same name — your formula ports as-is.
Try SUMPRODUCT in the playground
Edit the example — nothing to install.
Preloaded with the SUMPRODUCT formula from Example 1 — change anything and watch it respond.
SUMPRODUCT errors
What they mean — and the fixes.
#VALUE!The arrays have different sizes — every array must have the same number of rows and columns.
Related functions
More ways Google Sheets gets this done.
- CHOOSECOLSCreates a new array from the selected columns in the existing range.ArrayExcel
- CHOOSEROWSCreates a new array from the selected rows in the existing range.ArrayExcel
- HSTACKAppends ranges horizontally and in sequence to return a larger array.ArrayExcel
- LINESTGiven partial data about a linear trend, calculates various parameters about the ideal linear trend using the least-squares method.ArrayExcel
- MDETERMReturns the matrix determinant of a square matrix specified as an array or range.ArrayExcel
- MINVERSEReturns the multiplicative inverse of a square matrix specified as an array or range.ArrayExcel