The Excel SUMPRODUCT Function

Related Function:
SUMSQ Function

Basic Description

The Excel Sumproduct function returns the sum of the products of the corresponding values in two or more supplied arrays.

The format of the function is:

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

where the array arguments are arrays of numeric values, which may be supplied to the function directly, or as one or more cells or ranges of cells containing numeric values. All of the supplied arrays must be of equal length and non-numeric values in the supplied arrays are treated as the value zero.

In Excel 2007 and Excel 2010, you can provide up to 255 arrays to the function, but in Excel 2003, you can only provide up to 30 arrays.

Examples of use of the Excel Sumproduct Function
Excel Sumproduct Function Results

Sumproduct Function Examples

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

The format of the functions are shown in the top spreadsheet and the resulting values are shown in the spreadsheet below.

Note that:

Further information and examples of the Excel Sumproduct function can be found 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 lengths (i.e. contain different numbers of values)

Return to the Excel Math Functions Page

Return to the List of All Built-In Excel Functions