H
Hardy
Hi,
I want to create variable range within a function and ADDRESS function
looks to be the route to do this.
Problem is that it returns the address as text within the fuction, so
with a simple example if cells A1:A5 contain no's 1..5, and B5 has
=SUM(ADDRESS(1,1,1,1,)&":"&ADDRESS(5,1,1,1,)),
The range within sum returns
"$A$1:$A$5", rather than
$A$1:$A$5
and therefore formula does not recognise it as a range.
Any ideas - there must be simple way round.
I want to create variable range within a function and ADDRESS function
looks to be the route to do this.
Problem is that it returns the address as text within the fuction, so
with a simple example if cells A1:A5 contain no's 1..5, and B5 has
=SUM(ADDRESS(1,1,1,1,)&":"&ADDRESS(5,1,1,1,)),
The range within sum returns
"$A$1:$A$5", rather than
$A$1:$A$5
and therefore formula does not recognise it as a range.
Any ideas - there must be simple way round.