+ Reply to Thread
Results 1 to 9 of 9

How to copy all character till first space which begins with "RXO" data

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    How to copy all character till first space which begins with "RXO" data

    i need to copy all character till first space which begins with "RXO" data, other than cell will be blank.please check the attachment.

    i am having below data in the cell (A1:A65536)

    Please Login or Register  to view this content.
    i want to take it out which begins with "RXO" other then cell will be blank like following (B1:B65536)
    Please Login or Register  to view this content.
    I will be happy if I get both Macro & formula solution.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,974

    Re: How to copy all character till first space which begins with "RXO" data

    =IF(LEFT(A1,3)<>"RXO","",LEFT(A1,FIND(" ",A1)-1)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-26-2012
    Location
    Meerut
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: How to copy all character till first space which begins with "RXO" data

    Dear Nur2544

    In B2

    =IF(COUNTIF($A2,"*RXO*")=1,MID(A2,1,FIND(" ",A2)-1),"")

    R's
    Amit Kumar
    9627771750

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: How to copy all character till first space which begins with "RXO" data

    Hi

    Try this macro:

    Please Login or Register  to view this content.
    Click *, if my suggestion helps you. Have a good day!!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,974

    Re: How to copy all character till first space which begins with "RXO" data

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  6. #6
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: How to copy all character till first space which begins with "RXO" data

    Dear all
    @ TMShucks , your formula is working fine

    @ amitkr3855, Your formula is also working

    @ jraj1106 , Your macro is working great

    Now i am in puzzle which one should i use !!! ha ha ha . however thanks every one for Giving your valuable time for me , you all make my task easier

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,974

    Re: How to copy all character till first space which begins with "RXO" data

    Always good to have choices ... unless you don't like making decisions.

  8. #8
    Registered User
    Join Date
    12-26-2012
    Location
    Meerut
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: How to copy all character till first space which begins with "RXO" data

    Ya actually my formula is for contain RXO instead of beginwith I came to know after i posted sorry dear

    Pl. try this

    hope now it's working as u need

    =IF(COUNTIF($A3,"RXO*")=1,MID(A3,1,FIND(" ",A3)-1),"")
    Last edited by amitkr3855; 02-06-2013 at 03:17 AM. Reason: NA

  9. #9
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: How to copy all character till first space which begins with "RXO" data

    Hi amitkr3855, its ok boss no problem at all. I got your point, earlier I edited your formula to implement in my task. Thanks for concern regarding the same issue. Take care…

+ 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