Hi Frank.
The following array formula now works perfectly, so I am not looking for a
solution that "works" any more:
=SUM(1.5*D19:J19-0.5*(IF(D19:J19<8,D19:J19,8))*(COLUMN(D19:J19)<COLUMN(I19)))
However I remain curious as to why my first attempt failed (even though it
lacks elegance):
=SUM(OFFSET(C19,0,ROW(INDIRECT("1:7")))+0.5*(OFFSET(C19,0,ROW(INDIRECT("1:7")))-(8*((ROW(INDIRECT("1:7")))<6)*(OFFSET(C19,0,ROW(INDIRECT("1:7")))>8))))
Leaving aside the possibility of a typo or flawed overall approach, the SUM
operation does not appear to operate on an array, even if I array enter the
formula, and that is the sole problem that I am trying to get my head
around.
I tested that it did not operate on an array, by simplifying the formula to
just:
=SUM(OFFSET(C19,0,ROW(INDIRECT("1:7"))))
and I noted that it only returns the value of D19, not (as I had expected
and wished) the value of SUM(D19:J19) (in this instance).
--
Return email address is not as DEEP as it appears
Frank Kabel said:
Hi Jack
it would be best if you provide you total formula
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
and describe whyt
you're trying to do. Dave's suggestion would also work as part of an
array formula