+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : Vlookup returns #N/A with special Characters.

  1. #1
    Registered User
    Join Date
    07-15-2012
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Vlookup returns #N/A with special Characters.

    Hello,

    I have a table with data coming from a DB. I am trying to use voolkup and it returns #N/A.


    -uecBgd@Do[XaZ.T5%0g____`&HC#GeTG1S>+s?J#A1g____Name1
    +0*2hqH"+sJ\&`X?c[sQ________`&HC#GeTG1S>+s?J#A1g____Name2
    9(Dij':``3O7DX@MM________!!!!!!!!!!!!!!!!!!!!_____________Name3
    *5bF#XA16=XGfQRXs.&O_______N[0$CF$h<CM0qqoVjoPs____Name4
    !!!!!!!!!!!!!!!!!!!!_________________!!!!!!!!!!!!!!!!!!!!_____________Name0
    3Y=A[$(c!/VH!ga`,T&u__________9(Dij':``3O7DX@MM___Name8
    gQ1rgV*`$kO9JKLjcCC"_________9(Dij':``3O7DX@MM____Name7
    N[0$CF$h<CM0qqoVjoPs________9(Dij':``3O7DX@MM____Name78
    `&HC#GeTG1S>+s?J#A1g_______9(Dij':``3O7DX@MM____Name10

    I tried changing formatting. no success.
    Guess all those special characters are confusing Excel.
    Is there any hope for me?

    Thanks
    Last edited by eSimon; 07-15-2012 at 06:56 AM. Reason: Wrong Display

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup returns #N/A with special Characters.

    You get better help if you post an Excel-example of your workbook, without confidential information.
    Make sure the workbook demonstrates your desired results if possible, or just highlight the cells you're trying to fix.
    Use BEFORE/AFTER sheets if that helps make it clearer.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup returns #N/A with special Characters.

    that example works fine for me
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    07-15-2012
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Vlookup returns #N/A with special Characters.

    This is the case.
    In the attached document, in Sheet 1 i have order numbers located in Folder ID.
    In Sheet 2, there a list of all Folder ID, Parent Folder ID and Folder Name.
    I would like to have in Sheet one, in a new column, beside each Order the name of the Folder.
    See sheet1 with examples.

    Thanks.
    Attached Files Attached Files

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup returns #N/A with special Characters.

    its not the characters but the leading and trailing spaces in your data,trouble is cleaning them up starts to produce errors itself
    so use this array entered version of vlookup
    =VLOOKUP(TRIM(B2),TRIM(Sheet2!$A$2:$B$12),2,0)
    see this link on how to enter arrays
    http://office.microsoft.com/en-us/ex...872901033.aspx
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-15-2012
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Vlookup returns #N/A with special Characters.

    Thanks Martin.
    I was blinded by all those special characters and i did not see the leading space. I removed the space, but the result from vlookup is the same.
    See upadated file.
    Attached Files Attached Files

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup returns #N/A with special Characters.

    did you not see the formula i posted ? thats because your data has either leading and/or trailing spaces check both sheets sheet 2 has trailing spaces otherwise normally entered =VLOOKUP(TRIM(B2),Sheet2!$A$2:$B$12,2,0) would have worked (note no trim around Sheet2!$A$2:$B$12)

  8. #8
    Registered User
    Join Date
    07-15-2012
    Location
    Israel
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Vlookup returns #N/A with special Characters.

    Thanks,
    It worked now.
    I TRIMmed the spaces before applyng the formula (just to keep it simpler).

    Regards

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vlookup returns #N/A with special Characters.

    Based on your last post I'll mark this thread as SOLVED. Please remember to do that yourself in your future threads. Thanks.

+ 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