Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pcress
 
Posts: n/a
Default Address of named range

Is there any worksheet function that returns the address (text) of a named
range? I have used the paste list menu option but require a worksheet
function to return the address
  #2   Report Post  
Myrna Larson
 
Posts: n/a
Default

You probably need a VBA function for this. Here's one to get you started. To
use it, you need to put the name in quotes in the formula, i.e.

=NamedRangeAddress("MyRangeName")

It needs to be made much more robust. Right now it would work only for a
workbook-level name, and it returns something like

=Sheet1!$A$1:$A$10

Function NamedRangeAddress(sName As String) As String
On Error Resume Next
NamedRangeAddress = ThisWorkbook.Names(sName).RefersTo
End Function




On Fri, 12 Nov 2004 19:38:01 -0800, pcress
wrote:

Is there any worksheet function that returns the address (text) of a named
range? I have used the paste list menu option but require a worksheet
function to return the address


  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
for the 'first' cell of your range you could use
=CEL("address",your_range_name)

--
Regards
Frank Kabel
Frankfurt, Germany

"pcress" schrieb im Newsbeitrag
...
Is there any worksheet function that returns the address (text) of a

named
range? I have used the paste list menu option but require a

worksheet
function to return the address


  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default


1.

=REPLACE(CELL("Address",(A1,List)),1,5,"")

where List is the named range of interest. The way the CELL() function
behaves here is first reported by Harlan Grove.

2.

=CELL("Address",List)&":"&CELL("Address",INDEX(Lis t,MATCH(2,1/(1-ISBLANK(List)))))

which must be confirmed with control+shift+enter instead of just with
enter.

Obviously, [1] is more efficient/fast and also correct for the last
cell of List might be empty by intention.

pcress Wrote:
Is there any worksheet function that returns the address (text) of a
named
range? I have used the paste list menu option but require a worksheet
function to return the address



--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=277943

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing a range name as an argument to the Index Function Michael Sharpe Excel Discussion (Misc queries) 3 September 5th 12 01:33 PM
ClearContents method on a passed range bryan New Users to Excel 2 January 19th 05 08:49 AM
named range refers to: in a chart Spencer Hutton Excel Discussion (Misc queries) 1 December 14th 04 10:15 PM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 05:19 PM
Single quotes in named range Vik Mehta Excel Worksheet Functions 4 November 12th 04 02:35 PM


All times are GMT +1. The time now is 05:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"