SUMPRODUCT

The SUMPRODUCT function returns the sum of the products of corresponding numbers in one or more collections.

SUMPRODUCT(range, range…)

range: A collection of cells. range contains a reference to a single range of cells containing number values or duration values. If all values are duration values, SUMPRODUCT returns a number value. If one and only one cell in range contains a duration value while all others contain number values, SUMPRODUCT will return a duration value. If string values or boolean values are included in range, they are ignored. If date/time values are included in range, SUMPRODUCT will return an error.

range…: Optionally include one or more additional collections of cells. The collections must all have the same dimensions.

Notes

Examples

Suppose cells B1:E1 contain 1, 2, 3, and 4. Suppose cells B2:E2 contain 2, 4, 6, and 8.

=SUMPRODUCT(B1:E1, B2:E2) returns 60, the sum of B1*B2 (2), C1*C2 (8), D1*D2 (18), and E1*E2 (32).

=SUMPRODUCT(B1:E1) returns 10 because there is only one collection and the sum of that collection is 10.