+ Reply to Thread
Results 1 to 12 of 12

Problem with an easy formula VLOOKUP doesnt match

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Problem with an easy formula VLOOKUP doesnt match

    Hello Excel friends
    I'm tring to fix a bug with excel
    This is just small sample and VLOOKUP seems not to find a Value
    and the problem is only with the string (ir) beacuse look differet from the other (ir)

    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    1
    Table Dropdown Result for data validation
    2
    ir
    25%
    ir
    #N/D
    ir
    3
    ab
    33%
    ab
    4
    ff
    44%
    ff
    5
    gg
    62%
    gg


    =VLOOKUP(D2;A2:B5;2;0)

    Thank You for your help
    Attached Files Attached Files
    Last edited by XLalbania; 03-05-2017 at 06:08 PM. Reason: Put SOLVED

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,653

    Re: Problem with an easy formula VLOOKUP doesnt match

    It isn't an Excel bug. There is an invisible space after the ir in cell A2 - get rid of that and your formula works.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: Problem with an easy formula VLOOKUP doesnt match

    Thank you for your help
    How can I get rid of that nvisable space? because in not a space othewise i Would use TRIM function, As i said this is just small sample but I've 100000 of records and (Ir) is not the only problem, i think I need a formula to avoid thi invisable NOT charcer

    Thank you so much

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,653

    Re: Problem with an easy formula VLOOKUP doesnt match

    How is the ir getting there in the first place?

    Select the column and use find and replace:

    Find: ir*
    Replace: ir
    Last edited by AliGW; 03-05-2017 at 12:11 PM.

  5. #5
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: Problem with an easy formula VLOOKUP doesnt match

    If you edit the string and you press backspase you wil see that there is no blank space, but if you press again Backspace you will notice that does't cancel (r) because there is a kind of charter that make different string

    I Have some ir differnt from other ir some of them work and other not, probably because i download a file from my database from work but i cannot fix 10000 of (ir) so I was wondering if there is a formula
    Thank You

  6. #6
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: Problem with an easy formula VLOOKUP doesnt match

    Thanks everybody for your help, for the moment I wil stay with AliGW suggestion, but we keep this UNSOLVED in case there are other suggestion
    Thank you for your help

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,653

    Re: Problem with an easy formula VLOOKUP doesnt match

    A formula is not the way forward: cleaning your source data is the way to deal with this. You will need to find out what the rogue character is and why it is getting there.

  8. #8
    Forum Contributor
    Join Date
    08-04-2004
    Location
    Amsterdam
    MS-Off Ver
    2016
    Posts
    186

    Re: Problem with an easy formula VLOOKUP doesnt match

    =REPLACE(A2,1,3,"ir")

    That will remove the invisible character

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,283

    Re: Problem with an easy formula VLOOKUP doesnt match

    Formula: copy to clipboard
    =LEN(A2)
    gives 3
    Formula: copy to clipboard
    =CODE(RIGHT(A2,1))
    gives 63
    Formula: copy to clipboard
    =VLOOKUP(D2&"*",A2:B5,2,0)
    returns 25%

    In this instance, it is only cell A2 that has an extra, "invisible", character.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  10. #10
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: Problem with an easy formula VLOOKUP doesnt match

    Wooow!! mr.TMS
    Excellent Job!! Is what i needed Now the Topic is SOLVED
    Thank you everybody else tha helped me
    Thank You!

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,283

    Re: Problem with an easy formula VLOOKUP doesnt match

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  12. #12
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Albania
    MS-Off Ver
    2013
    Posts
    215

    Re: Problem with an easy formula VLOOKUP doesnt match

    Ok I did Every thing as you said
    Goodbye

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to get a VLOOKUP+MATCH formula to return 0 and not N/A when MATCH doesnt work
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2016, 09:40 AM
  2. [SOLVED] VLookup Problem - Should be an Easy Solve!
    By mrsdeapsleap in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-01-2015, 01:55 PM
  3. Replies: 3
    Last Post: 05-26-2015, 11:34 AM
  4. [SOLVED] VLOOKUP AND MATCH formula problem
    By OPO in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 04-26-2015, 11:54 PM
  5. [SOLVED] any Ideas Why this INDEX MATCH formula doesnt work ?
    By ecelaras in forum Excel General
    Replies: 13
    Last Post: 11-30-2012, 06:55 AM
  6. Combined VLOOKUP and MATCH formula PROBLEM
    By Enewbee in forum Excel General
    Replies: 2
    Last Post: 12-19-2011, 08:56 AM
  7. IF,Match,Vlookup Formula problem
    By zrupnick in forum Excel General
    Replies: 5
    Last Post: 10-28-2009, 07:30 AM

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