The Excel SUMPRODUCT Function

Related Function:
SUMSQ

Function Description

The Excel Sumproduct function returns the sum of the products of the corresponding values in a set of supplied arrays.

The syntax of the function is:

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

where the array arguments are one or more arrays of numeric values that you want to sum the products of.

Note that:


Sumproduct Function Examples

 Formulas:
  A B C
1 Array 1 Array 2 Sumproduct
2 1 5 =SUMPRODUCT( A2:A4, B2:B4 )
3 2 6 =SUMPRODUCT( A2:A4, B2:B4, {2; 4; 1} )
4 3 4 =SUMPRODUCT( A2:A4, B2:B4, {2; 4; "text"} )
 Results:
  A B C D
1 Array 1 Array 2 Sumproduct  
2 1 5 29 = 1x5 + 2x6 + 3x4
3 2 6 70 = 1x5x2 + 2x6x4 + 3x4x1
4 3 4 58 = 1x5x2 + 2x6x4 + 3x4x0
  (note "text" is treated as 0)   
5      

The above spreadsheets on the right show 3 examples of the Sumproduct function.

Note that:


Further details and examples of the Excel Sumproduct function are provided on the Microsoft Office website


Sumproduct Function Error

If you get an error from the Excel Sumproduct Function, this is likely to be the #VALUE! error:

Common Error
#VALUE! - Occurs if the supplied arrays have different dimensions.