Results 1 to 6 of 6
  1. #1
    Lounger
    Join Date
    Aug 2002
    Location
    MN, USA
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text matching (2002)

    I was using a vlookup to match names in a couple of spreadsheets and came accross a problem (see attached). What is different between the two names?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Text matching (2002)

    The space in the first name is a non-breaking space, it has ASCII code 160.
    The space in the second name is a "normal" space, it has ASCII code 32.

  3. #3
    Lounger
    Join Date
    Aug 2002
    Location
    MN, USA
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Text matching (2002)

    Great, thanks.

    A couple things:
    a) Any ideas how the nonbreaking space got in there? It is highly unlikely that our excel user typed "alt 0160".

    [img]/forums/images/smilies/cool.gif[/img] How can you tell what ascii code each character is?

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Text matching (2002)

    a) Perhaps the user pasted something from another application, e.g. Word, or from a web page (non-breaking spaces are used frequently in web pages).
    [img]/forums/images/smilies/cool.gif[/img] You can use the CODE worksheet function for this. The space is the 7th character in the name. I put the formula

    =CODE(MID(B2,7,1))

    in a cell, and filled it down to the cell below. This gave me the ASCII codes.

  5. #5
    Lounger
    Join Date
    Aug 2002
    Location
    MN, USA
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Text matching (2002)

    Cool, thanks for the info and I hope you have a good holiday season!

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Text matching (2002)

    Thanks, and you too!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •