+ Reply to Thread
Results 1 to 4 of 4

Remove Last 2 Characters in a Column of Data

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    2

    Remove Last 2 Characters in a Column of Data

    I have a column containing data (numbers) with an inconsistent length (between 6 and 12 characters). I want to remove the last 2 characters from each cell in the column. I have tried the right function, and it will take the last 2 out and put in a new column, but leave them in the original column also. I have tried "split cells" and it will not let me split from the right. This would work if I was trying to remove the first 2, or if all of the cells had the same number of characters.

    I want these last 2 characters completely gone.

    BTW I need to do this repeatedly and possibly include in a macro

    Please help

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Remove Last 2 Characters in a Column of Data

    try

    =left(A1,len(A1)-2)
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Remove Last 2 Characters in a Column of Data

    How about this macro for removing characters from selected cells:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-02-2011
    Location
    Louisiana
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Remove Last 2 Characters in a Column of Data

    Quote Originally Posted by tom1977 View Post
    try

    =left(A1,len(A1)-2)
    Perfect, 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