+ Reply to Thread
Results 1 to 8 of 8

Does vLookup have to be all the way in the left?

  1. #1
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Does vLookup have to be all the way in the left?

    Hi All,

    I'm trying to do a vlookup from a list where the text string that my lookup value is supposed to match is in the fourth column of the row on my index worksheet. Subsequently my v-lookup formula is giving back an error of N/A. I recently heard that the vLookup has to be all the way in the left hand column of the array - is that true?

    For instance, in trying to obtain the metric in Sheet 2 in the same row as Apples this works:

    Sheet 1: Apples Oranges Pear
    Sheet 2: Apples 5 3

    vlookup (apples)

    but this does not:

    Sheet 1: Apples Oranges Pears
    Sheet 2: 5 3 Apples

    vlookup (apples)
    Last edited by SEMMatt; 02-23-2012 at 11:05 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Does vLookup have to be all the way in the left?

    SEMMatt,

    That is correct. If you want to lookup an item and then return a corresponding value that is to the left of the vlookup column, you'll need to use Index/Match in this format:
    =Index(resultcolumn,Match(lookupvalue,lookupcolumn,0))
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Does vLookup have to be all the way in the left?

    Thanks tigeravatar!

  4. #4
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Does vLookup have to be all the way in the left?

    tigeravatar maybe you could help me further...I've attached an example worksheet with the case.

    example22.xlsx

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Does vLookup have to be all the way in the left?

    SEMMatt,

    Attached is a modified version of your example workbook. In Sheet1 cell B1 is this formula:
    =INDEX(Sheet2!A1,MATCH(A1,Sheet2!B1,0))
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Does vLookup have to be all the way in the left?

    Ok, but I'm still not 100% clear on what's going on. Can you try it with this example:

    example22 (Modified by SEMmatt).xlsx

  7. #7
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Does vLookup have to be all the way in the left?

    In Sheet1 cell B1 and copied down:
    =INDEX(Sheet2!$A$1:$A$3,MATCH(A1,Sheet2!$B$1:$B$3,0))
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: Does vLookup have to be all the way in the left?

    got it - now I understand. Thanks so much tigeravatar.

+ 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