+ Reply to Thread
Results 1 to 4 of 4

Deleting a space from the end of a value

  1. #1
    Registered User
    Join Date
    07-05-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel Office Professional Plus 2010
    Posts
    32

    Deleting a space from the end of a value

    Hi all,

    I've created a button with macro assigned to paste a value from clipboard onto cell E4.

    Sometimes users will have a space bar at the end of the value which causes an error for another cell calculating a value.

    Is there a way in excel you can change the value of a cell from e.g "1234 " to "1234" automatically?

    Thanks,
    Raef

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Deleting a space from the end of a value

    Hi,

    use trim(). If the value is in a1, then trim(a1) will remove the space.

    -----------------------------------

    If my reply helped, Please add reputation (click on the star below the post)
    If the reply solves your problem, Don't forget to mark the thread as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    04-07-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Lightbulb Re: Deleting a space from the end of a value

    hi friend,

    U can use TRIM function otherwise which column u having spaces concatenate with one special charecter for next column next use find and replace function find the value " special character" (i.e space and special character) replace with blank

    we can remove spaces at word ending
    Last edited by krishnaiah; 07-05-2013 at 02:44 AM.

  4. #4
    Registered User
    Join Date
    07-05-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel Office Professional Plus 2010
    Posts
    32

    Re: Deleting a space from the end of a value

    Worked a charm. Thanks.

+ 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