+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP formula with a dynamic table_array range

Hybrid View

mmogharreban VLOOKUP formula with a... 03-28-2013, 02:24 PM
Tony Valko Re: VLOOKUP formula with a... 03-28-2013, 02:42 PM
mmogharreban Re: VLOOKUP formula with a... 03-28-2013, 05:36 PM
Tony Valko Re: VLOOKUP formula with a... 03-28-2013, 10:34 PM
  1. #1
    Registered User
    Join Date
    05-22-2012
    Location
    IL
    MS-Off Ver
    Excel 2010
    Posts
    50

    VLOOKUP formula with a dynamic table_array range

    Hello all,

    I am not sure if this is possible, but I am trying to create a vlookup formula where I can define the table_array using a value from another cell. For example: A1="Range 1" I would then like the formula in B1 to read =VLOOKUP(1,"Range 1",2,False). If A1="Range 2", the formula in B1 reads
    =VLOOKUP(1,"Range 2",2,False) and so on.

    Any suggestions would be greatly appreciated! Thanks!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: VLOOKUP formula with a dynamic table_array range

    Try it like this...

    =VLOOKUP(1,INDIRECT(A1),2,0)

    Note that this will not work if Range 1 is defined using functions like OFFSET.

    If you have problems implementing this tell us the actual address of Range 1.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-22-2012
    Location
    IL
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: VLOOKUP formula with a dynamic table_array range

    Perfect!! Thanks!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: VLOOKUP formula with a dynamic table_array range

    You're welcome. Thanks for the feedback!

+ 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