I'm trying to use Indirect with an array formula to get the product of 1 + a cell range (e.g. D5:D7). When I try to use a statement like the one below, I get a #VALUE! error.
={PRODUCT(1+INDIRECT("$D"&K5&":$D"&ROW($A4)))}
In the code above, K5 will contain a number less than Row($A4) (i.e. a number less than 4).
Can someone please suggest a way of accomplishing this?
Thanks very much
ROW
function - ROW returns an array like{4}
rather than just a number, even when it's a single value like here - some functions work OK with that but other functions can't handle it - to fix you can wrap ROW function inMAX
orSUM
which won't change the value but will turn it into a single value -=PRODUCT(1+INDIRECT("$D"&K5&":$D"&SUM(ROW($A4))))
– barry houdini