+ Reply to Thread
Results 1 to 7 of 7

How to remove trailing SPACE from Cell value ?

  1. #1
    Registered User
    Join Date
    02-02-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    62

    How to remove trailing SPACE from Cell value ?

    Hi
    How to remove trailing SPACE from Cell value ?


    I have 15000 CELL value..i.e A1,A2,A3...A15000

    I just want to remove trailing SPACES (if any) from these CELL value.


    System: Office 2007

  2. #2
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: How to remove trailing SPACE from Cell value ?

    Hi,

    it very simple just use below code
    Please Login or Register  to view this content.
    Happy to Help

    VISHA

    Click *, if the suggestion helps you!
    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>> "Mark your thread as Solved"

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How to remove trailing SPACE from Cell value ?

    you can use
    function =trim(A1)
    or
    macro

    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Doha, State of Qatar
    MS-Off Ver
    excel 2003, 2007, 2010, 2016
    Posts
    124

    Re: How to remove trailing SPACE from Cell value ?

    use trim() function
    Regards,
    abdul

  5. #5
    Registered User
    Join Date
    02-02-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: How to remove trailing SPACE from Cell value ?

    Quote Originally Posted by visha_1984 View Post
    Hi,

    it very simple just use below code
    Please Login or Register  to view this content.
    looks good ....but is not it just TRIMMING A1 element only. I have 15000 CELLS to trim.

    Can it be done without programming ?

  6. #6
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Doha, State of Qatar
    MS-Off Ver
    excel 2003, 2007, 2010, 2016
    Posts
    124

    Re: How to remove trailing SPACE from Cell value ?

    drag the formula down, or copy the formula down in all the cells...or upload the file we will do the same for you...

  7. #7
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    869

    Re: How to remove trailing SPACE from Cell value ?

    Hi, can you simply highlight all the areas where you want the space removing, press ctrl+f, go to replace, in the search field press the space bar, and then click replace all?
    I have to do this on some workbooks, although a much less qty. but might help

+ 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