+ Reply to Thread
Results 1 to 4 of 4

Removing last three Characters

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Removing last three Characters

    Hi,

    as part of a wider macro, I need to remove/trim in column B the last three characters in each cell so that I am only left with the first 12 characters. any ideas on a quick clean looking bit of code to accomplish this.

    Thanks,

    Craig

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Removing last three Characters

    I know you said VBA (my weak side), but this would do the same in a formula, maybe you can adapt it?
    =left(a1,len(a1)-3)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Removing last three Characters

    Since you said you wanted 12 characters I focused on that.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-02-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Removing last three Characters

    Stnkynts,

    Thanks a lot, that's worked perfectly.

    Regards,

    Craig

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Removing Characters.
    By qcity in forum Excel General
    Replies: 7
    Last Post: 07-29-2011, 07:09 AM
  2. try to Removing characters
    By elite-fusion in forum Excel General
    Replies: 7
    Last Post: 09-03-2010, 08:58 AM
  3. Removing characters
    By esupply in forum Excel General
    Replies: 2
    Last Post: 07-07-2010, 11:53 AM
  4. removing the first 3 characters
    By graeme86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2007, 08:24 AM
  5. removing characters???
    By William Stokes in forum Excel General
    Replies: 3
    Last Post: 10-11-2005, 03:05 AM

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