Please enable JavaScript to view the comments powered by Disqus.


SUMPRODUCT(...(...B4:B11=C13)*(...C4:C11))

How to use SUMPRODUCT function to validate a criteria and sum

The formula works by validating a criteria for a criteria range and then summing the valid against them for cases it is true. The formula returns an array of 1s and 0s when checking for a criteria and this binary array is multiplied with the values and summed up to give the final answer.


Used Functions

Category: Math and trigonometry

Returns the sum of the products of corresponding array components

Syntax

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

Lets chat on this