+ Reply to Thread
Results 1 to 3 of 3

How to Return a Named Range

  1. #1
    Registered User
    Join Date
    12-11-2014
    Location
    Indiana
    MS-Off Ver
    2010
    Posts
    1

    How to Return a Named Range

    I'm working on a way to reference a cell contained text, rather than the cell itself. Is there a way to do this?

    Basically, in cell A3 I have a formula that returns the name of my desired named range based on other input data, be it NamedRange1 or NamedRange2 or so on and so forth. I have written another formula in other cells that will use this resultant text name of that named range to then change the results in that cell. That formula looks like this:
    =INDEX($A$3,1,1)
    I was thinking this would then use the value found in cell A3, being NamedRange1, to refer to that array and then return the appropriate cell, but instead, it returns #VALUE.

    Is there a way for the formula to read only the text in the "target" cell (A3) and return the data from the named range I want?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to Return a Named Range

    You need to indirectly reference...

    try:

    =INDEX(INDIRECT($A$3),1,1)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: How to Return a Named Range

    Yes, you can - through the use of INDIRECT. See the very simple example attached...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Return number of rows used in a named range?
    By Traziness in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-25-2012, 10:33 AM
  2. Using Indirect function to return a named range.
    By adrianodl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2012, 09:30 AM
  3. Formula to return contents from named range
    By Bhugs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2012, 01:18 AM
  4. [SOLVED] Determine what Named Range the Target Address is and return Named Range Name
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2012, 10:49 PM
  5. Searched Named range and return multiple results
    By a.mack123 in forum Excel Programming / VBA / Macros
    Replies: 43
    Last Post: 10-10-2011, 10:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1