+ Reply to Thread
Results 1 to 4 of 4

Vlookup returning wrong data

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    2

    Vlookup returning wrong data

    I have several lists of data that resembles like this:

    Value No.
    1234 1001
    -1234 5001
    5678 1002
    -5678 5002
    9012 1003
    -9012 5003
    etc

    And in another sheet Im doing a vlookup function to assign numbers to respect value.
    range("D1").formula = "=VLOOKUP(C1,Dummy!B:C,2,FALSE)"
    For example, if cell C1 is "-1234", D1 will return "5001".

    Problem is, while in some lists the formula works just fine, there are some specific lists that give out totally opposite outcomes.
    For example, if cell C1 is "-1234", D1 will return "1001" instead of "5001", while when cell C1 is "5678", D1 will return "5002" in stead of "1002".

    The lists give out numbers and values in exactly same formats, while the formulas and the cells are exactly the same. Could someone please help me figure out what is happening here?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup returning wrong data

    HI Voklari,

    Welcome to the forum.
    Vlookup returns data basis on first match and may be it is finding any match before the result your are considering. Suggest you to check this point.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile Re: Vlookup returning wrong data

    Thx, mate, I'll check all the references again and see if I can be more specific.

    Will be good if this eliminates the problem.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup returning wrong data

    sure.. I am also curious to know the outcome

    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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