+ Reply to Thread
Results 1 to 6 of 6

Vlookup + Offset?

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Vlookup + Offset?

    Just curious, is it possible to combine Vlookup() and Offset() together in one formula? I would like to lookup a certain value in a range, and based on the location of the value, go down two rows and one column to the right and then return this value.

    Example:
    Please Login or Register  to view this content.

    Possible? Or do I need to have a go at Index()? Not really familiar with Index() so any help would be great.

    Thanks

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,557

    Re: Vlookup + Offset?

    The VLOOKUP doesn't sem all that relevant. All you want is to find the position of apple in your array and then offset from there. I got a bit lost: so this is almost certainly unnecessarily complicated, but it seems to work...

    =OFFSET(INDIRECT(CELL("address",INDIRECT("A"&MATCH(A4,$A$1:$A$10,0)))),2,2)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup + Offset?

    if =vlookup("apple","A1:B10",2,FALSE) gives value in b4
    match("apple",a1:a10,0) would give row 4
    match("apple",a1:a10,0)+2 would give row 6
    now given that index(c1:c10,6) is c6

    so replace the 6 with the match ie match("apple",a1:a10,0)+2
    so simply
    =INDEX($C$1:$C$10,MATCH("apple",$A$1:$A$10,0)+2)
    returns the value in c6
    Last edited by martindwilson; 11-16-2014 at 06:23 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,557

    Re: Vlookup + Offset?

    Yea... I just knew I was overcomplicating it!!!

  5. #5
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: Vlookup + Offset?

    this is a surprisingly boring solution to my problem, thanks guys

  6. #6
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: Vlookup + Offset?

    this is a surprisingly boring solution to my problem, thanks guys

+ 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. VLookup with Offset Help
    By mspiteri in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-31-2012, 11:49 AM
  2. Offset a vlookup?
    By JimmySmith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2012, 01:50 PM
  3. Using Vlookup and Offset?
    By treehouse in forum Excel General
    Replies: 1
    Last Post: 08-07-2009, 02:45 AM
  4. VLOOKUP and OFFSET
    By renita8781 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2007, 09:40 AM
  5. Vlookup & offset
    By jvp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2007, 02:43 AM

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