+ Reply to Thread
Results 1 to 3 of 3

Vlookup matching first x characters, showing up as #N/A

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Vlookup matching first x characters, showing up as #N/A

    Hi,

    I'm trying to use vlookup and left to compare 2 sets of data. Sheet 1 has an everchanging list of companies and sheet 2 is another list of companies (with possibly different suffixes, which is why a straight vlookup isn't working). I want for a result to show up when the first 8 characters are a match.

    However when I try to insert the LEFT function I always seem to get the #N/A error. I've created a workbook with some generic company names, can anyone see where I'm going wrong? Or is there maybe a better way of achieving what I want? The code I have now is: =VLOOKUP(LEFT(A1,8),Sheet2!A1:A11,1,0)

    Thanks
    Attached Files Attached Files
    Last edited by jager; 05-14-2013 at 12:13 AM.

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Vlookup matching first x characters, showing up as #N/A

    =VLOOKUP(LEFT(A1,8)&"*",Sheet2!A$1:A$11,1,0)

  3. #3
    Registered User
    Join Date
    05-01-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Vlookup matching first x characters, showing up as #N/A

    Ah that was it! I saw the &"*" once before on this forum but couldn't find it again for the life of me.

    Cheers!

+ 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