+ Reply to Thread
Results 1 to 3 of 3

value in cell to determine which named range used in formula

  1. #1
    Registered User
    Join Date
    08-31-2007
    Posts
    2

    value in cell to determine which named range used in formula

    Hi there

    I'm hoping someone can help me out here, I have searched and searched on google for asisatnce and within Excel's own help info but to no avail. Maybe i am using the wrong terminology, who knows!?!?!?

    What I want to be able to do is to have a text value in a cell which will be the same as a named range and can be called from a formula in another cell.

    For example, I have three named ranges: JAN, FEB and MAR. Instead of having a formula which might read:

    =VLOOKUP("bill", JAN, 1, 1)

    I would like to have in cell A1 the text value "JAN" so that the formula can read:

    =VLOOKUP("bill", A1, 1, 1)

    Then I can change which named range is used in the formula but changing the value in cell A1.

    When I try to do this, the formula just looks up the value as if cell A1 was the range rather than taking the value from A1 as the named range.

    Can anyone help me around this?

    Thanks

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    =VLOOKUP("bill", indirect(A1), 1, 1)

    Does that work?

    Regards

    Dav

  3. #3
    Registered User
    Join Date
    08-31-2007
    Posts
    2
    Thanks very much, yes, this has helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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