Using Range Names in Formulae
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Using Range Names in Formulae

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Posts
    73
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hi all.

    I have a drop down box of range names from which I want the user to select a particular name.

    The chosen name gets put in a cell (say A1).

    I then have an index formula that looks to A1 eg:

    =index(A1,,2)

    The only problem is that the formula fails as Excel does not recognise the contents of A1 as a range name. It stores it as a text string.

    Is there any easy way I can get around this and make Excel notice this text string as a range name? I know how to do this using VBA but I would rather do it in a formula if possible.

    Any help would be greatly appreciated!!

    Thanks

    Chris

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,768
    Post Thanks / Like
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-02-25 06:52, chris-evans wrote:
    Hi all.

    I have a drop down box of range names from which I want the user to select a particular name.

    The chosen name gets put in a cell (say A1).

    I then have an index formula that looks to A1 eg:

    =index(A1,,2)

    The only problem is that the formula fails as Excel does not recognise the contents of A1 as a range name. It stores it as a text string.

    Is there any easy way I can get around this and make Excel notice this text string as a range name? I know how to do this using VBA but I would rather do it in a formula if possible.

    Any help would be greatly appreciated!!

    Thanks

    Chris
    Try:

    INDIRECT(A1) as part in your formulas.

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Posts
    73
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Worked a treat! - Thanks!

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com