+ Reply to Thread
Results 1 to 3 of 3

Looking a Way to Kill Extra Space at the end of value

  1. #1
    Registered User
    Join Date
    02-21-2008
    Posts
    1

    Looking a Way to Kill Extra Space at the end of value

    I have 2 columns. Values in column A also exist in column B, but not all. I have conditional formula in column C that displays 'TRUE' or 'FLASE' if identical value from Column A exist in column B.

    But the problem is some values in columns B contain extra space at the end of value therefore condition formula shows 'FLASE' when infact value from columns A exist somewhere in Column B but extra space make Excel think it is different.
    i.e.

    A1 value = U S A
    B82 value = U S A

    'U S A' does exist in column B but I will get false value in C1 because of extra space at the end.

    So What I trying to accomplish is delete any extra space ONLY at the end

    I tried CNTRL + H but It will replace ANY SPACE whereever it finds but I want to delete only at the end.

    Any help will be appreciated.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello ccuser,

    Provided you don't need leading spaces you can you use the TRIM function to remove both leading and trailing spaces.

    Example
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    01-24-2007
    Location
    Omaha, USA
    Posts
    3

    Thanks, this trick rocks

    Thanks so much. I was looking for exact same thing and found it on this post. Saved me tons of time.

    Keep up the good work.

+ 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