+ Reply to Thread
Results 1 to 7 of 7

TEXT separation by formula

Hybrid View

nur2544 TEXT separation by formula 06-10-2013, 11:32 AM
Pete_UK Re: TEXT separation by formula 06-10-2013, 11:36 AM
nur2544 Re: TEXT separation by formula 06-10-2013, 11:41 AM
ChemistB Re: TEXT separation by formula 06-10-2013, 11:36 AM
nur2544 Re: TEXT separation by formula 06-10-2013, 11:42 AM
Jakobshavn Re: TEXT separation by formula 06-10-2013, 11:40 AM
nur2544 Re: TEXT separation by formula 06-10-2013, 11:43 AM
  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    TEXT separation by formula

    I have data in cell A1, I need to separate as CELL B1 & CELL C1
    A1= TG-1 ICDH0096      CELL B1= TG-1    CELL C1=DH0096
    Below two formula working fine , I need one more logic , if cell A1 having blank the results for CELL B1 also remain blank ,& likewise CELL C1 also.
    B1=TRIM(LEFT(A1,FIND(" ",A1)))
    C1= IF(ISNUMBER(SEARCH("TG",A1)),RIGHT(A1,7),A1)

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: TEXT separation by formula

    You can do this:

    B1: =IF(A1="","",TRIM(LEFT(A1,FIND(" ",A1))))

    C1: =IF(A1="","",IF(ISNUMBER(SEARCH("TG",A1)),RIGHT(A1,7),A1))

    Hope this helps.

    Pete

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

    Re: TEXT separation by formula

    hi,Pete it works, thanks...

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: TEXT separation by formula

    =IF(A1<>0, your formula, "")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

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

    Re: TEXT separation by formula

    hi, ChemistB , your solution also works fine , thanks..

  6. #6
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: TEXT separation by formula

    In B1:

    =IF(A1="","",TRIM(LEFT(A1,FIND(" ",A1))))

    in C1:

    =IF(A1="","", IF(ISNUMBER(SEARCH("TG",A1)),RIGHT(A1,7),A1))
    Gary's Student

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

    Re: TEXT separation by formula

    Hi, jakobshavn, it works, 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