+ Reply to Thread
Results 1 to 6 of 6

Split Last word into separate column.

  1. #1
    Registered User
    Join Date
    12-27-2019
    Location
    Canada
    MS-Off Ver
    MS Office
    Posts
    3

    Split Last word into separate column.

    Hello,

    I have following data in 1 column and would like to split last word of each column in next column.

    Example my data in 1 column looks like:

    Moda_Dress_Style1_Black
    Moda_Dress_Style1_White
    Moda_Dress_Style4_Special_White
    Modal_Dress_Style4_Special_Backorder_Pink

    I would like to use formula or data text to comumn function to separate last word of each column , i.e color in next column.


    Please help

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Split Last word into separate column.

    Welcome to the forum.

    Try this in B1 copied down:

    =TRIM(RIGHT(SUBSTITUTE(A1,"_",REPT(" ",99)),98))

    Excel 365 (Windows) 32 bit

    A
    B
    1
    Moda_Dress_Style1_Black Black
    2
    Moda_Dress_Style1_White White
    3
    Moda_Dress_Style4_Special_White White
    4
    Modal_Dress_Style4_Special_Backorder_Pink Pink
    Sheet: Sheet1
    Last edited by AliGW; 12-28-2019 at 04:18 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-27-2019
    Location
    Canada
    MS-Off Ver
    MS Office
    Posts
    3
    Thank you Ali,

    Also I would like to remove last words (color) from cell column A How do i do that ?
    Last edited by AliGW; 12-28-2019 at 10:59 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Split Last word into separate column.

    You can't extract from existing data with a formula, but you could do this (e.g. in C1 copied down):

    =SUBSTITUTE(TRIM(LEFT(SUBSTITUTE(A1,"_",REPT(" ",99)),98*(LEN(A1)-LEN(SUBSTITUTE(A1,"_","")))))," ","_")

    Excel 365 (Windows) 32 bit

    A
    B
    C
    1
    Moda_Dress_Style1_Black Black Moda_Dress_Style1
    2
    Moda_Dress_Style1_White White Moda_Dress_Style1
    3
    Moda_Dress_Style4_Special_White White Moda_Dress_Style4_Special
    4
    Modal_Dress_Style4_Special_Backorder_Pink Pink Modal_Dress_Style4_Special_Backorder
    Sheet: Sheet1

  5. #5
    Registered User
    Join Date
    12-27-2019
    Location
    Canada
    MS-Off Ver
    MS Office
    Posts
    3

    Re: Split Last word into separate column.

    Thanks much! It worked !

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Split Last word into separate column.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. [SOLVED] split one column data into two separate columns
    By alipezu in forum Excel General
    Replies: 1
    Last Post: 04-17-2016, 03:29 AM
  2. How to split a word to separate characters in excel?
    By Vikshal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-28-2013, 09:52 AM
  3. Replies: 5
    Last Post: 12-28-2013, 08:59 AM
  4. [SOLVED] Split a line of words, each word in a separate cell
    By Hitch75 in forum Excel General
    Replies: 13
    Last Post: 08-08-2012, 10:10 PM
  5. [SOLVED] Split a line of words, each word in a separate cell using function
    By slc in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-08-2012, 10:03 PM
  6. Split cell so that the last word in separate column
    By CameronP in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-03-2012, 02:01 AM
  7. split data in one column into two separate ones
    By C.j. in forum Excel General
    Replies: 6
    Last Post: 03-21-2012, 02:28 PM

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