+ Reply to Thread
Results 1 to 10 of 10

Find and replace blank characters

  1. #1
    Registered User
    Join Date
    08-15-2008
    Location
    denver
    Posts
    68

    Find and replace blank characters

    Every month, I download several sets of data from an internet site. The only way I can do this is to copy and paste into Excel. The problem is, that all of the cells with numbers in them show up as text, and when I press F2, I find that there is a blank space at the end of each number.

    Find and replace, searching for a blank space does not work - Excel "cannot find any data to replace". That function does work on cells in which I have created my own space at the end of a number, but not on these numbers. That leads me to believe that that "blank space" is actually some other invisible character that I need to be searching for. I've attached a bit of my data - maybe somebody else can identify my phantom character.

    To get around this, I have been using the formula =(left(A1,len(A1)-1), and that works, it's just that it is a pain to create another table of 20-some columns with this formula, then copy those to values, then for each column convert text to columns to change the text to values, then search and replace for #value! where the original cells were blank.

    I'm not into VB. A different solution would be appreciated.

    Thanks
    Attached Files Attached Files
    Last edited by jmhultin; 08-28-2009 at 04:32 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Find and replace blank characters

    The Char in question is 160...

    You can run an Edit -> Replace on your data, in the Find What hold ALT and type 0160 using the numeric keypad
    if using a laptop ALT + FN + 0160 (entering the 0160 via the numeric keypad area of the keyboard)

    Leave Replace With as blank and select Replace All... you should find your values coerce to numbers automatically.

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Find and replace blank characters

    DonkeyOte
    Just for interest...
    wouldn't i get the same result If i type just space in find what field and nothing in replace with field?
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Find and replace blank characters

    No... Space = Char 32, Char 160 is a different character altogether.

  5. #5
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Find and replace blank characters

    dont wanna arque but but i made by my own way and got the same results?!...

  6. #6
    Registered User
    Join Date
    08-15-2008
    Location
    denver
    Posts
    68

    Re: Find and replace blank characters

    Thanks - works perfectly!

  7. #7
    Registered User
    Join Date
    08-15-2008
    Location
    denver
    Posts
    68

    Re: Find and replace blank characters

    Contaminated - Using the space works fine in other situations for me, but in this particular database, it has some other character - DonkeyOte has not revealed exactly what character 160 is.

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Find and replace blank characters

    Quote Originally Posted by ContaminatedWitExcel View Post
    dont wanna arque but but i made by my own way and got the same results?!...
    CHAR160 <> CHAR32 as Apple <> Banana...

    List of ANSI codes: http://www.alanwood.net/demos/ansi.html

    If you ever want to get a list for yourself...

    A1: =CHAR(ROWS(A$1:A1))
    copy down to A255

  9. #9
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Find and replace blank characters

    thx for explanation
    .... i just wanted to know difference between...

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Find and replace blank characters

    exactly what character 160 is
    non-breaking space
    Entia non sunt multiplicanda sine necessitate

+ 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