SUMPRODUCT
Math

Returns the sum of the products of corresponding array components

Syntax:

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

Example:

=SUMPRODUCT(A1:A5, B1:B5)