+ Reply to Thread
Results 1 to 12 of 12

How to separate a text string into two columns?

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Roma
    MS-Off Ver
    Excel 2010
    Posts
    68

    How to separate a text string into two columns?

    Good morning everyone.
    I don't know if the question has already been done. If so, I beg your pardon. I searched the forum but I have not found anything.

    The question is: I have to separate a string of text in two columns. The string consists of the Italian title of a novel, followed by the original title, wich is enclosed in parentheses. Obviously, the length of the Italian title is variable, and therefore I'm not able to transfer to an adjacent column only the part related to the original title. I also have to remove the parentheses.
    How can I do it?

    Thank you for the help.

    P.S. As usual, I apologize for my imperfect English.

  2. #2
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: How to separate a text string into two columns?

    Is there any seperator for italian and original title?

    can you pls give an example?

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to separate a text string into two columns?

    Perhaps

    =LEFT(A1;FIND(" ";A1)-1)

    =IF(FIND(")";A1)-FIND("(";A1)>1;MID(A1;FIND("(";A1)+1;FIND(")";A1)-FIND("(";A1)-1);"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

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

    Re: How to separate a text string into two columns?

    Post a few examples of what your data looks like. You should be able to split it using the parentheses with FIND or SEARCH along with LEFT and RIGHT.

    Pete

  5. #5
    Registered User
    Join Date
    09-21-2012
    Location
    Roma
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: How to separate a text string into two columns?

    Quote Originally Posted by Pete_UK View Post
    Post a few examples of what your data looks like. You should be able to split it using the parentheses with FIND or SEARCH along with LEFT and RIGHT.

    Pete
    This is my sheet.

    Thank you
    Attached Files Attached Files

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to separate a text string into two columns?

    As i said

    =IF(FIND(")";A1)-FIND("(";A1)>1;MID(A1;FIND("(";A1)+1;FIND(")";A1)-FIND("(";A1)-1);"")
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: How to separate a text string into two columns?

    Hi,

    Try this:

    B1 and drag down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  8. #8
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: How to separate a text string into two columns?

    Simple method is to go to Data>.Text to column>>Delimited>>put '(' in others and next

    You may have to replace ')' with blank in the result to get rid of the paranthesis at the end

  9. #9
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: How to separate a text string into two columns?

    oh.. I am late and the above solutions are perfect for you....

  10. #10
    Registered User
    Join Date
    09-21-2012
    Location
    Roma
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: How to separate a text string into two columns?

    Quote Originally Posted by Fotis1991 View Post
    As i said

    =IF(FIND(")";A1)-FIND("(";A1)>1;MID(A1;FIND("(";A1)+1;FIND(")";A1)-FIND("(";A1)-1);"")
    Thank you, that's just what I needed

  11. #11
    Registered User
    Join Date
    09-21-2012
    Location
    Roma
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: How to separate a text string into two columns?

    Thank you everyone.

    Fotis1991 has solved the problem.

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to separate a text string into two columns?

    Quote Originally Posted by pgft View Post
    Thank you, that's just what I needed
    ......................

+ 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