+ Reply to Thread
Results 1 to 4 of 4

Dynamic vlookup

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    61

    Dynamic vlookup

    Hi everyone,

    I'm trying to create a dynamic ranged vlookup, but can't seem to do it. This is the situation: I want the vlookup to start only from a certain row, where the row that I want to start looking in changes, but the final element of the range is always the same.

    I've attached a sample file with the relevant information. Row A contains the row number I would like to start looking in, and row G is the array in which I would like to search, where I would like to search only from the row number in column A through to the end of the array in G. For example, A2 contains "20", so I would like to do a vlookup that looks for the value in B2 in the array in G starting from row 20 through to row 23 (the final row in the array). Similarly for the remaining values in column B



    The formula I'm trying to use is the following: =VLOOKUP(B2,G&ROW(OFFSET(G2,A2,0))&G23,1,FALSE). So what I'm trying to do here is look for the value of B2 in an array which is offset by the number in row A2.

    Any ideas would be awesome!

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: Dynamic vlookup

    Hi, try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-09-2012
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Dynamic vlookup

    Worked beautifully!
    Thanks!

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Dynamic vlookup

    The non-volatile option would be:
    =VLOOKUP(B2,INDEX(INDEX(G:G,A2):G23,0),1,0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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