Hello all
My problem is I need to use the SumProduct function on variable length arrays. Hence I believe I need to use the Indirect function together with a string address as the parameters of the SumProduct function.
I am assembling the array address string using the Address function and given it is an array, I'm concatenating the address as follows (I've replaced various formulas etc with hard-coded numbers for simplicity):
Straightforward so far.
Testing on its own, it produces the string "$B$3:$B$7" as expected.
The problem is when I apply it to the INDIRECT formula as follows
I get a #VALUE! error
But when I replace the COLUMN(B3) formula's with hard coded numbers
all is good.
A clue might be that when using the in-cell debugging feature of Excel, the hard-coded Indirect function evaluates to a 5 element array {1;2;3;4;5} while the first Indirect function evaluates to a single element array {1}. But why?
I'm new to this forum and in fact have not been on any forums for many years. Hence apologises if I violate any protocols - constructive criticism very welcome.
I have a guru colleague working on it. If she finds a solution, I'll post.
Bookmarks