+ Reply to Thread
Results 1 to 5 of 5

Trim whitespace from end of last word in all rows in column A?

  1. #1
    Registered User
    Join Date
    05-25-2009
    Location
    Palm Springs, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Trim whitespace from end of last word in all rows in column A?

    Hello,

    I've made a mistake in "some" of the rows in Column A of my spreadsheet.

    Some of the contents (words) in Column A have an extra blank whitespace at the end of them. But I need them to end with the last letter in that field.

    Now, if it was just a matter of a couple dozen entries, I'd fix it by hand, but it's actually a matter of about 14,560 rows of data, some with the extra whitespace at the end of the last word in some rows in column A and some without.

    Is there an easy way for me to strip/trim off the extra blank whitespace at the end of the last word in each row in column A?

    If so could you please explain how to accomplish this. I'm not fluent in Excel, so simplistic instructions would really help me to understand your instructions on how to accomplish this.

    Thank you for your time, it is appreciated.

  2. #2
    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: Trim whitespace from end of last word in all rows in column A?

    Welcome to the forum.

    See Help for the TRIM function.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-25-2009
    Location
    Palm Springs, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Trim whitespace from end of last word in all rows in column A?

    I looked at that, what I can't figure out about that is that it wants me to enter the text, but each row has totally individual text in it so no two rows will have the same last word. This is where it leaves me baffled as to what I have to enter for the text since each last word is different in each row of column A.

  4. #4
    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: Trim whitespace from end of last word in all rows in column A?

    In a separate column, enter =trim(w1) and copy down (assuming W is the column of interest).

    Then copy those results, and paste as values over the original data.

  5. #5
    Registered User
    Join Date
    04-25-2009
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    84

    Re: Trim whitespace from end of last word in all rows in column A?

    =LEFT((A1),LEN(TRIM(A1))-1)

    this formula is used to copy contents of a cell but getting rid of the last character. (-1) is the number of characters at the end that need to be eliminated.

    Try this, I used this before. good luck.

+ 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