+ Reply to Thread
Results 1 to 3 of 3

why my vlookups not working

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    87

    why my vlookups not working

    i have 2 sheets

    sheet1 has 3 fields: old id, id description, new id
    sheet2 has 1 field: old id

    i want to add new id to sheet2 through a vlookup

    however the formula does not seem to be working..

    i believe my formula is right though since i tried it with another method.

    i added a new field (old id2) in sheet1 between old id and id description.

    the formula in old id2 is =LEFT(cell location,3)... so it's essentially returning the same values in old id....

    then i change my vlookup... it works when i did that!

    i keep on having to do this everytime..

    why is this the case??

    the data types are the same so the issue is not that.


    can anyone help? thanks!

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: why my vlookups not working

    can you upload your workbook and i'll take a look?
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: why my vlookups not working

    Hi ewong,

    I'm wildly guessing here, but maybe it's one of these problems...

    1. Make sure you are comparing the same things... in other words, if old id in sheet1 are numbers, then old id in sheet2 must be numbers too... or text values looking up text values...

    I wonder if your sheet1![old id] is a number and your sheet2![old id] is text... so when you changed the old id with your formula (which converted it now to a text) then you were able to compare text to text...

    2. Maybe your column number is wrong... make sure it is 3, and not 2 or 4...

    3. Maybe your table_range is wrong? make sure the first column of the table_range matches the index that you are looking for...

    4. Lastly, make sure you have 0 or false (exact match), instead of 1 or true (approx match), as your last variable

+ 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