Syntax
=SUMPRODUCT(array1, [array2], ...)Arguments
| Argument | Required | Description |
|---|---|---|
array1 | Required | The first range or array |
array2 | Optional | More 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 =SUMPRODUCT(A1:A2, B1:B2)Result Data in the sheet
| A | B | |
|---|---|---|
| 1 | 2 | 4 |
| 2 | 3 | 6 |
=SUMPRODUCT({1,2}, {1,2,3})Result Related math functions
- SUBTOTALReturns a subtotal (sum, average, count and more) of ranges, skipping other subtotals; codes 101 to 111 also skip hidden rows.
- SUMAdds numbers and the numbers in ranges.
- SUMIFAdds the cells that meet a condition.
- SUMIFSAdds the cells that meet all of several conditions.
- SUMSQReturns the sum of the squares of the numbers.
- SUMX2MY2Returns the sum of the differences of the squares of matching values in two arrays.
- SUMX2PY2Returns the sum of the sums of the squares of matching values in two arrays.
- SUMXMY2Returns the sum of the squares of the differences of matching values in two arrays.
- TANReturns the tangent of an angle given in radians.