+ Reply to Thread
Results 1 to 5 of 5

Removing Space from Number Copied n2 XL from HTML

  1. #1
    Registered User
    Join Date
    02-23-2007
    Posts
    4

    Removing Space from Number Copied n2 XL from HTML

    Does anyone know how to remove the pesky space from a numeric string that has been copied from a web page and pasted into an excel spreadsheet?

    Thanks!

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Go to Edit > Find Replace
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    If the space is at the end of the number, you should be able to use

    =trim(a1)

    If the space is in the middle somewhere, you can use

    =substitute(a1," ","")

  4. #4
    Registered User
    Join Date
    02-23-2007
    Posts
    4
    the space is at the end of the number but for some reason even with the trim command the space remains.

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    How about

    =CLEAN(A1)

    This will remove a handful of non-printing characters.

    If this fails, you can probably do as OldChippy suggested and use Find/Replace. The trick is you'll have to go into one of the problem cells and select that last invisible character. Copy that character and paste it into the "Find What" box in the Replace window. In the "Replace With" box, do nothing (leave blank). Click Replace All and it should get rid of those non-printing characters.

    Let us know..

+ 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