SUMPRODUCT function

This article describes the formula syntax and usage of the SUMPRODUCT function in Microsoft Excel.

Description

Multiplies corresponding components in the given arrays, and returns the sum of those products.

Syntax

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

The SUMPRODUCT function syntax has the following arguments:

  • Array1     Required. The first array argument whose components you want to multiply and then add.

  • Array2, array3,...     Optional. Array arguments 2 to 255 whose components you want to multiply and then add.

Remarks

  • The array arguments must have the same dimensions. If they do not, SUMPRODUCT returns the #VALUE! error value.

  • SUMPRODUCT treats array entries that are not numeric as if they were zeros.

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Array 1

Array 2

3

4

2

7

8

6

6

7

1

9

5

3

Formula

Description

Result

=SUMPRODUCT(A2:B4, D2:E4)

Multiplies all the components of the two arrays and then adds the products — that is, 3*2 + 4*7 + 8*6 + 6*7 + 1*5 + 9*3 (156)

156

Applies To: Excel 2013, Excel 2007, Excel 2010, Excel Starter, Excel Online, Excel for Mac 2011, Excel 2016 for Mac



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language