Explanation
TheSUMPRODUCT functionmultipliesarraystogether and returns the sum of products.
If only one array is supplied, SUMPRODUCT will simply sum the items in the array.
We can do this with theEXACT function, which is designed to perform a case-sensitive comparison of text strings.
Every other value is now a zero.
This will work perfectly as a filter.
Turning back to the formula in G5, we can see how this works.
The only values that survive are those associated with TRUE, and the final result is 5.
Remember, this formula only works for numeric values, because SUMPRODUCT doesn’t handle text.
The advantage of this approach is that we no longer need to use the double negative.