I'm trying to use Indirect with an array formula to get the product of 1 + a cell range (eg 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) (ie a number less than 4).
Can someone please suggest a way of accomplishing this?
Thanks very much
This is arguably easier with INDEX
function, ie
=PRODUCT(1+INDEX(D:D,K5):INDEX(D:D,ROW($A4)))
confirm with CTRL + SHIFT + ENTER
Arguably the easiest way is to simply do:
PRODUCT((A2:A100)+1)
If you want to multiply the (1+cell value) of cells A1 to A100
Sure, it will generate a #VALUE! in the front end but if you then click on the insert formula (the little Fx next to the formula bar) you will see the formula result there.
This value is correct and accurate. I use it all the time for chain-linking returns and can't be bothered with more complicated formulas.
@Gabs Garcia, your approach is correct, however, I think that instead of everytime checking the value in the Insert Function Menu, it's easier just to use an Array Formula, which works as:
Enter:
=PRODUCT((A2:A100)+1)
Then instead of pressing ENTER, press CTRL+SHIFT+ENTER
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.