+ Reply to Thread
Results 1 to 3 of 3

Copy the last letters of each cell.

Hybrid View

  1. #1
    Registered User
    Join Date
    08-25-2013
    Location
    Tasmania
    MS-Off Ver
    Excel 2007
    Posts
    1

    Copy the last letters of each cell.

    I have tried to split the cell though it it removes all S's in words, I only require the last letters in a new cell. IE XS, L, M, S etc and all words are not the same length.
    Not so up with formulas or can it done easily with Text to columns?


    Sammy Dress Porcini XS
    Amelia Cowl Jacket
    Billie Blouse L
    Billie Blouse L
    Billie Blouse M
    Billie Blouse S
    Billie Blouse XS

    Cheers

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

    Re: Copy the last letters of each cell.

    you could try something like this
    Formula: copy to clipboard
    TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",50)),50))


    if you want to control as in-> Amelia Cowl Jacket
    you can use
    Formula: copy to clipboard
    =IF(LEN(TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",50)),50)))>3,"",TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",50)),50)))

    if letters exceeds 3 characters return blank.
    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

  3. #3
    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
    53,048

    Re: Copy the last letters of each cell.

    Hi and welcome to the forum

    Assuming your data is in A1 down, you could also give this a try, copied down...

    =MID(A1,SEARCH("xxx",SUBSTITUTE(A1," ","xxx",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))),1)+1,99)
    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

+ 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. Copy all cells in sheet1 that start with specific letters to one column in sheet2
    By jgabis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2013, 05:01 PM
  2. Replies: 5
    Last Post: 12-30-2012, 10:59 AM
  3. Replies: 2
    Last Post: 12-01-2010, 02:29 PM
  4. Copy first two letters of a cell
    By tkinsella in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-27-2010, 02:55 PM
  5. Replies: 4
    Last Post: 02-22-2006, 02:35 AM

Tags for this Thread

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