Yes.....Here's the reason...
A boolean expression (fancy phrase for an expression that returns a True/False value) does NOT return a numeric result.
Consequently, this:
Survey!D1:D200="Y"
returns a series of True and False values.
SUMPRODUCT is trying to add them together...and failing.
However, you can coerce those values into proper numbers by forcing Excel to implicitly convert True to 1 and False to 0 by applying a mathematical operator to them.
The generally accepted approach by knowledgable users is this:
--(Survey!D1:D200="Y")
The first minus sign (-) makes True = -1 and False = 0.
The second minus sign converts those values to 1 and 0, respectively.
You could also multiply the values by 1, but that might mislead users. Whenever you see the double-minus sign in a formula, that's an indication that it's only purpose is to force a conversion to numbers.
So, you're formula could be:
BUT, it should be this:
Note: there are NO spaces in those formulas
Does that help?
Bookmarks