ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using address function result in an array (https://www.excelbanter.com/excel-worksheet-functions/87505-using-address-function-result-array.html)

RLR

Using address function result in an array
 
The following formula returns "$C2:D$2" (Please note: result encapsulated in
double quotes)

=ADDRESS(2,3,3)&":"&ADDRESS(2,4,2)

How do I use the result as a range reference within a function, array or by
external reference to the result?

Thanks in advance.

Ardus Petus

Using address function result in an array
 
=INDIRECT(ADDRESS(2,3,3)&":"&ADDRESS(2,4,2))

HTH
--
AP

"RLR" a écrit dans le message de news:
...
The following formula returns "$C2:D$2" (Please note: result encapsulated
in
double quotes)

=ADDRESS(2,3,3)&":"&ADDRESS(2,4,2)

How do I use the result as a range reference within a function, array or
by
external reference to the result?

Thanks in advance.




RLR

Using address function result in an array
 
Thanks! When I took out the optional [sheet_text] reference argument in the
address function, indirect worked as documented.

When the address result is in the form of "Daily!$B$2", the indirect
function bombs.

Thanks for the help.

"Ardus Petus" wrote:

=INDIRECT(ADDRESS(2,3,3)&":"&ADDRESS(2,4,2))

HTH
--
AP

"RLR" a écrit dans le message de news:
...
The following formula returns "$C2:D$2" (Please note: result encapsulated
in
double quotes)

=ADDRESS(2,3,3)&":"&ADDRESS(2,4,2)

How do I use the result as a range reference within a function, array or
by
external reference to the result?

Thanks in advance.





JMB

Using address function result in an array
 
It seemed to worked okay for me w/the sheet reference. I included the sheet
text only on the first address and did not include the !


"RLR" wrote:

Thanks! When I took out the optional [sheet_text] reference argument in the
address function, indirect worked as documented.

When the address result is in the form of "Daily!$B$2", the indirect
function bombs.

Thanks for the help.

"Ardus Petus" wrote:

=INDIRECT(ADDRESS(2,3,3)&":"&ADDRESS(2,4,2))

HTH
--
AP

"RLR" a écrit dans le message de news:
...
The following formula returns "$C2:D$2" (Please note: result encapsulated
in
double quotes)

=ADDRESS(2,3,3)&":"&ADDRESS(2,4,2)

How do I use the result as a range reference within a function, array or
by
external reference to the result?

Thanks in advance.






All times are GMT +1. The time now is 06:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com