+ Reply to Thread
Results 1 to 3 of 3

Remove space after numbers

  1. #1
    Registered User
    Join Date
    05-23-2011
    Location
    New Orleans
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    12

    Lightbulb Remove space after numbers

    I have been pulling my hair out trying to figure out a way to remove the trailing space in this cell. No matter what I do the space stays in the cell and it doesn't allow me to convert the text number into numbers. Any help with a Script that would help me do this would be greatly appreciated.

    I attached the worksheet to this thread.

    The column in question is E and it is labeled amount. You will notice that the cells contain what is suppose to be dollar values. But there is a trailing space in every cell.

    Thanks,
    Abraham Walker
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Remove space after numbers

    Select cell E2, and go to the formula bar, and copy that "space".

    Then do a CTRL+H to replace... paste what you copied into the Find What box, and just hit Ok....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Remove space after numbers

    To add to NBVCs' post ...

    If you put this in a spare cell, say I2
    Please Login or Register  to view this content.
    This will return 160, which is a non-printing character commonly found when copying from the web, a "space" is CHAR(32).

    So in a spare column try this
    Please Login or Register  to view this content.
    Drag/Fill Down as required.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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