Beruflich Dokumente
Kultur Dokumente
This is what Excel's Insert Function feature says of SUMPRODUCT: 'Returns the sum
of the products of corresponding ranges or arrays'. But SUMPRODUCT is a much
more versatile function than this description suggests, and it is not limited to the
summation of products.
SUMPRODUCT(array1,array2,array3, ...)
=SUMPRODUCT(B2:B11,C2:C11)
When applied to the following simple spreadsheet the result of the formula is 770:
The same result is achieved by this version of the formula, in which an asterisk
replaces the comma:
=SUMPRODUCT(B2:B11*C2:C11)
It follows that the sign replacing the comma separating the arrays determines the
mathematical operation that SUMPRODUCT engages between the pairs of values in
the two arrays.
=SUMPRODUCT(A19:F19*A20:F20)
=SUMPRODUCT((C2:C11*D2:D11)*(B2:B11="HR"))
Note the pairings of the brackets; also the specific use of asterisks instead of the
commas appearing in the Excel help on the syntax of the function.
That is, you want a result for those values highlighted in pink. Your formula should
be this:
=SUMPRODUCT((D2:D11*E2:E11)*(B2:B11="HR")*(C2:C11="Client B"))