+ Reply to Thread
Results 1 to 4 of 4

Vlookup Issue

Hybrid View

  1. #1
    Registered User
    Join Date
    01-09-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    1

    Vlookup Issue

    I am having an issue with the data in a VLOOKUP formula. I have done a fair amount of research online and have spent several hours trying to figure out the problem with the data integrity between the key columns. I haven't been able to figure it out, so I thought I would ask this esteemed group. The worksheet is attached.

    NBA.xlsx

    Observation:
    If I remove 2 rows of key data above the match, the VLOOKUP does return the correct value.

    A - Trying to cleanse the data from B for the VLOOKUP fucntion.
    B, C, D - Extrated Data from column I
    F, G - Test VLOOKUP function
    I - Original Source Data
    Last edited by mowine; 01-10-2011 at 06:25 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Vlookup Issue

    mowine,

    In worksheet Doesn't Find Match, in cell H1, enter the following formula, and copy down:

    =IF(ISNA(INDEX(C:C,MATCH(F1,A:A,0),1)),"",INDEX(C:C,MATCH(F1,A:A,0),1))
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Vlookup Issue

    Hello,

    If you use Vlookup without the fourth parameter, it expects the list to be sorted, which it is not.

    Use False as the fourth parameter

    =VLOOKUP(F1,$A$1:$D$30,3,FALSE)

    and all will be good.

    @ Stan, in Excel 2007 and older, you could also use IFERROR

    =IFERROR(INDEX(C:C,MATCH(F1,A:A,0),1),"")

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Vlookup Issue

    teylyn,

    Missed the fact that the OP had Excel 2010.

+ 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