+ Reply to Thread
Results 1 to 9 of 9

vlookup issues

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Frankfort, NY
    MS-Off Ver
    Excel 2007
    Posts
    6

    vlookup issues

    I have a simple vlookup function that looks for a match for the value in A7 of ws1 in the first column of ws2. It is supposed to spit back the corresponding value in the same row of column 2 but it keeps returning the same value. Furthermore the value it does retrieve isn't even the closest match.

    Please Login or Register  to view this content.
    If I remove the "False" attribute it returns the same value of 39574 and with it I get the error message of Part No. Not Found. I can plainly see the lookup value in the worksheet I'm searching.

    I am at a loss to know what can be wrong as this should be a routine and simple operation. Any suggestions would be appreciated. Thanks

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: vlookup issues

    Check for leading trailing spaces, etc in both the lookup value and the lookup table, the false is looking for an EXACT match, so any little difference will not return a match..
    Without the false it is doing an"approximate" match, which depending on the data set, may or may not actually return the value you are looking for (Check the excel help files for more info on this...)

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Frankfort, NY
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: vlookup issues

    There doesn't appear to be any spaces in either, but the lookup value (A7) is populated via concatenation. I wouldn't think that would have any effect but I can think of no other reason why this is occurring. The funny thing is that apparently only one cell in the lookup sheet comes close to matching even though there are far closer candidates.

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: vlookup issues

    Could you upload a sample WB?
    Maybe a non-display character got added in, etc...
    Approximate matches on text values are tricky, data needs to be sorted right, etc.. otherwise odd results

  5. #5
    Registered User
    Join Date
    02-06-2013
    Location
    Frankfort, NY
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: vlookup issues

    On evaluating the formula I noticed that there is indeed a space being added at the end of the part number. So the actual search string looks like this...

    Please Login or Register  to view this content.
    How might I get rid of that?

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: vlookup issues

    the best way is to seeif you can find where it is being added and modify that, but this should work as well:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Hope this helps

  7. #7
    Registered User
    Join Date
    02-06-2013
    Location
    Frankfort, NY
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: vlookup issues

    Thanks for your prompt replies. I tried the Trim and Clean functions to no avail...

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: vlookup issues

    I suggest you upload a sample workbook then, without seeing what I'm working with, it is very hard to come up with a solution

  9. #9
    Registered User
    Join Date
    02-06-2013
    Location
    Frankfort, NY
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: vlookup issues

    Thanks. I've identified the problem and will have to have the guy who wrote the extra space into the formula remove it. Thanks again...

+ 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