+ Reply to Thread
Results 1 to 4 of 4

Deleting a space at the end of a cell..

  1. #1
    Registered User
    Join Date
    11-02-2006
    Posts
    46

    Deleting a space at the end of a cell..

    Hi there,

    Just quick, and hopefully easy, question..

    Is there anyway you can quickly delete a space at the end of a cell?

    So "hello there " becomes "hello there"

    I have a very large file and it's gonna take me ages to go cell by cell until each space is deleted!

    Help!!


  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Hodged

    Say your list starts in cell A1, then something like this in B1 and copied down would return the string without the space, but but should leave the space between words intact :
    =TRIM(A1)

    You could always use Copy / Paste Special, Values Only... to make the change more permanent and eliminate the formulae.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Say data in Col A. Enter this in B1 and drag down

    =TRIM(A1)
    then paste special values and delete col A

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    11-02-2006
    Posts
    46
    You guys are great!

    Thanks for the help again!

+ 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