+ Reply to Thread
Results 1 to 4 of 4

How to refer to one of several named ranges in a formula

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    How to refer to one of several named ranges in a formula

    I want to use the value of a cell to be the name of a range in a lookup formula.

    In the attached workbook sheet1 has three named ranges.

    Sheet 2 has a series of Index/match lookup formulae which at the moment have the value DIGI as the name of the lookup array.

    What I would like to do is to have the value of AI as the name of the array. This could take any of the names of the ranges in sheet1.
    Please ignore the column names in the named ranges.
    Hope somebody can help here.

    John
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to refer to one of several named ranges in a formula

    Replace the DIGI in the formulas with INDIRECT(A1)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: How to refer to one of several named ranges in a formula

    What is the lookup value in sheet2, What is your expected result and where you want the result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: How to refer to one of several named ranges in a formula

    SpecialK
    That was where I started but it does not work. INDIRECT(A1) where A1 value is DIGI (or PLAIN or FLEXO) gives REF!

    nfSales

    The Sheet 2 table is giving the results I want where the lookup table is "DIGI" If I replace DIGI in the formulae on that sheet with FLEXO or PLAIN I get the results from the corresponding tables in Sheet1. as desired.
    What I want to do is to refer to A1 in the formulae and change the value of A1 to reflect the table I need to use.

    INDIRECT(A1) does not work. Is there something that will?
    John

  5. #5
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: How to refer to one of several named ranges in a formula

    I have discovered that If I abandon named ranges (not desirable as they change in size in the application). Then I can use INDIRECT(A1):INDIRECT(B1) in the Index/Match formula, where A1 defines the start of the range and B2 the end.
    This is very ugly though and if there is a way of retaining the names it would be much clearer and neater.
    John

+ 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. Named Ranges that refer to all of workbook
    By dta1984 in forum Excel General
    Replies: 13
    Last Post: 01-06-2012, 12:20 PM
  2. Named ranges using a named formula
    By cad1llac in forum Excel General
    Replies: 6
    Last Post: 10-22-2011, 07:37 AM
  3. Refer to a named range in a CSE array formula?
    By JayUSA in forum Excel General
    Replies: 3
    Last Post: 01-11-2010, 10:56 PM
  4. [SOLVED] List all the named ranges & the cells they refer to on a blank she
    By Hervinder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2006, 07:00 PM
  5. range names-How do you progammaticly refer to named ranges?
    By Zoomer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2005, 05:06 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