Reputation: 535
I have a cell which is a named range MyRange. Whats the best way to return the address this refers to into a cell without VBA?
Upvotes: 1
Views: 91
Reputation: 7742
A variation on teylyn's second:
=CELL("address",MyRange)&":"&CELL("address",INDEX(MyRange,ROWS(MyRange),COLUMNS(MyRange)))
Regards
Upvotes: 1
Reputation: 35915
For a single cell range you can use
=CELL("address",MyRange)
For a multi-cell range you can use
=CELL("address",MyRange)&":"&CELL("address",OFFSET(INDIRECT(CELL("address",MyRange)),ROWS(MyRange)-1,COLUMNS(MyRange)-1))
Upvotes: 5