Alan Beban said:
work.
Probably so; although, though I'm not sure what derived arrays are, it
might be that SUM works with them if array entered.
Derived arrays are arrays produced by nonconstant expressions. The term
'constant array' applies to syntactic tokens (lookup up that bit of jargon
yourself, it's widely used by real programmers) like {1,2;3,4;5,6}. I
haven't seen any term in online help for arrays produced by expressions like
(ROW(1:3)-1)*2+COLUMNA:B)
which generates the same result as the preceding constant array. I use
'derived array' because the result it an array and it's derived by
evaluating the expression. Would 'evaluated array' be clearer for you? What
term do you use to distinguish constant arrays from arrays that aren't
constant arrays?
Anyway, your SUM formula works entered normally when the 2nd argument to
COUNTIF is a constant array but returns #VALUE! if that argument were what
I've been calling a derived array. Your formula would work with either kind
of array if entered as part of an array formula.
SUMPRODUCT would always return the same result entered normally or as part
of an array formula with constant or derived array arguments. There may be
more to type with SUMPRODUCT, but there's less to remember. In my experience
most people prefer doing more and thinking less, or perhaps they just behave
consistently with such a preference.