+ Reply to Thread
Results 1 to 6 of 6

How do I delete spaces from the end of text

  1. #1
    George
    Guest

    How do I delete spaces from the end of text

    Some of the text fields that I have to clean up have a space (or more than
    one space). I need to clean this text up so the last word is the end of the
    text string.

    Any ideas?

    Thanks

  2. #2
    pinmaster
    Guest
    Hi, have a look at the TRIM function.

    Regards
    JG

  3. #3
    Peo Sjoblom
    Guest

    Re: How do I delete spaces from the end of text

    Id the text copied from the web, in that case you might have trailing html
    characters, if not us

    =TRIM(A1)

    otherwise

    =TRIM(SUBSTITUTE(A1,CHAR(160),""))

    if there are many see:


    http://www.mvps.org/dmcritchie/excel/join.htm#trimall

    --

    Regards,

    Peo Sjoblom


    "George" <[email protected]> wrote in message
    news:[email protected]...
    > Some of the text fields that I have to clean up have a space (or more than
    > one space). I need to clean this text up so the last word is the end of

    the
    > text string.
    >
    > Any ideas?
    >
    > Thanks




  4. #4
    George
    Guest

    Re: How do I delete spaces from the end of text

    Very helpful. Thanks again.

    "Peo Sjoblom" wrote:

    > Id the text copied from the web, in that case you might have trailing html
    > characters, if not us
    >
    > =TRIM(A1)
    >
    > otherwise
    >
    > =TRIM(SUBSTITUTE(A1,CHAR(160),""))
    >
    > if there are many see:
    >
    >
    > http://www.mvps.org/dmcritchie/excel/join.htm#trimall
    >
    > --
    >
    > Regards,
    >
    > Peo Sjoblom
    >
    >
    > "George" <[email protected]> wrote in message
    > news:[email protected]...
    > > Some of the text fields that I have to clean up have a space (or more than
    > > one space). I need to clean this text up so the last word is the end of

    > the
    > > text string.
    > >
    > > Any ideas?
    > >
    > > Thanks

    >
    >
    >


  5. #5
    Registered User
    Join Date
    04-23-2012
    Location
    New Plymouth, NZ
    MS-Off Ver
    Excel for Mac 2011
    Posts
    14

    Re: How do I delete spaces from the end of text

    TRIM, or TRIM(SUBSTITUTE) .... etc is not working. Which cell do you put the formula in.

    I created a new column next to the one I want to trim and put the formula in the empty cell next to it, but referring to it??? Blank space at the end still remains !!??

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: How do I delete spaces from the end of text

    Help file for the TRIM() function notes two different kinds of space character: https://support.office.com/en-us/art...rs=en-US&ad=US

    Ardnas: This forum is pretty strict about not posting your question in another user's thread. If that doesn't answer your question, start your own thread. You can link back to this thread if you feel that it helps you explain your question/problem.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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