+ Reply to Thread
Results 1 to 4 of 4

Last 2 words strip separate

  1. #1
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,695

    Last 2 words strip separate

    GENTS FORMAL LAED LEATHER SOLE BLACK 40
    GENTS FORMAL LAED LEATHER SOLE BLACK 41
    GENTS FORMAL LAED LEATHER SOLE BLACK 42
    GENTS FORMAL LAED LEATHER SOLE BLACK 43

    I have this on a1 downwards

    want this on b1 downwards

    BLACK
    BLACK
    BLACK
    BLACK

    want this on c1 downwards

    40
    41
    42
    43

    want this on d1 downwards

    GENTS FORMAL LAED LEATHER SOLE
    GENTS FORMAL LAED LEATHER SOLE
    GENTS FORMAL LAED LEATHER SOLE
    GENTS FORMAL LAED LEATHER SOLE

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Last 2 words strip separate

    B1:
    =trim(left(right(" "&substitute(trim(a2)," ",rept(" ",60)),120),60))

    c1
    =trim(right(substitute(trim(a2)," ",rept(" ",255)),255))

    d1
    =substitute(a2," "&trim(right(substitute(a2," ",rept(" ",100)),200)),"")

  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: Last 2 words strip separate

    Is that format always like that....
    word space word space word space word space word space color space 2-digit number?
    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

  4. #4
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,695

    Re: Last 2 words strip separate

    Thank you Azumi , it deals with even colours that are not 5 characters like RED

+ 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] VBA issue - trying to separate words with CAPITALS from Proper words
    By Eagle29 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-24-2013, 04:22 AM
  2. [SOLVED] Separate last two words and put in a separate column
    By n.aditya.k in forum Excel General
    Replies: 4
    Last Post: 09-11-2012, 05:21 AM
  3. \Want to separate words
    By Kamal Asharaf in forum Excel General
    Replies: 10
    Last Post: 06-12-2012, 08:53 AM
  4. Separate last two words
    By hatwarvaibhav in forum Excel General
    Replies: 2
    Last Post: 03-21-2012, 10:57 AM
  5. How to separate words by comma
    By wliong in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-13-2006, 06:10 PM
  6. separate whole words
    By norika in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-03-2006, 08:10 AM
  7. Replies: 3
    Last Post: 06-08-2005, 11:05 AM
  8. [SOLVED] How to separate 2 words into separate kolumns
    By Piotr in forum Excel General
    Replies: 2
    Last Post: 01-27-2005, 08:06 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