Skip to main content

How to quickly get address of named range in Excel?

Range name is a common feature that we usually used in our workbook, but, here, I wonder if there was a way to show the full address of a named range. For example, I have a named range called “domains” in a worksheet, and the range address would be $A$2:$A$9. How could I quickly get the address of a ranged name in Excel?

Get address of ranged name in Excel with formula

Get address of ranged name in Excel with User Defined Function


arrow blue right bubble Get address of ranged name in Excel with formula

Supposing, I have a range data which has the range name “domains” as following screenshot shown, and now, I can extract the address A2:A9 of the range name as following steps:

doc-get-range-name-address-1

1. Enter this long formula =ADDRESS(ROW(domains),COLUMN(domains))&":"&ADDRESS(ROW(domains)+ROWS(domains)-1,COLUMN(domains)+COLUMNS(domains)-1) into a blank cell, see screenshot:

doc-get-range-name-address-1

Note: In the above formula, domains is the range name that I want to use, you can change it to your own range name.

2. Then press Enter key, and you will get the cell address of the ranged name.

doc-get-range-name-address-1


arrow blue right bubble Get address of ranged name in Excel with User Defined Function

If you want to get the address of the range name including the sheet name, the following VBA code can do you a favor.

1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

VBA code: get address of ranged name in Excel

Function NameRefersTo(ByVal sName As String) As String
'Update 20140904
    On Error Resume Next
    NameRefersTo = Application.ActiveWorkbook.Names(sName).RefersTo
End Function

3. Then save and close this code, go back to your worksheet, in a blank cell, please enter this formula =Namerefersto("domains") into a blank cell, see screenshot:

doc-get-range-name-address-1

Note: In the above formula, domains is the range name that you want to use, you can change it to your need, and you must put the name between in quotes.

4. Press Enter key, and it returns the sheet name with the address for your specified ranged name.

doc-get-range-name-address-1

Best Office Productivity Tools

Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

kte tab 201905


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Don't name the Module the same as the function 0:-)
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations