# SUMPRODUCT function: Description, Usage, Syntax, Examples and Explanation

## What is SUMSQ function in Excel?

SUMSQ function is one of the Math and Trig functions in Microsoft Excel that multiplies corresponding components in the given arrays, and returns the sum of those products.

## Syntax of SUMSQ function

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.
Worked Example:   Excel Data validation must not contain

## SUMSQ formula explanation

• 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.
Worked Example:   Sum by weekday in Excel

## Example of SUMSQ function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

Worked Example:   Count sold and remaining in Excel

You can adjust the column widths to see all the data, if need be.

 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