When using the N() function on a range, the return is the value of the first cell instead of an array of values, even when used in an array computation:
=SUMPRODUCT(N(A1:A2))
returns SUMPRODUCT(N(A1))
instead of SUMPRODUCT({N(A1);N(A2)})
Is there any way to successfully compute the latter without volatile instructions or resorting to intermediary cells?
The reason for the N() function is that the range value may contain text, and would thus raise a #VALUE error.
For those interested, this is the full, yet faulty expression:
=SUMPRODUCT(--(ISNUMBER(C139:N139)),1/(N(C139:N139)+0.00000575))
A working, but volatile array formula:
{=SUM(IF(ISNUMBER(C139:N139),1/(C139:N139+0.00000575),0))}
Bookmarks