+ Reply to Thread
Results 1 to 8 of 8

seperate text from different languages from one cell

  1. #1
    Registered User
    Join Date
    12-29-2014
    Location
    israel
    MS-Off Ver
    office 2010
    Posts
    1

    seperate text from different languages from one cell

    hello,
    I have a lot of cells with text in different languages in one cell, combined together.
    Is there any way to seperate the text from one language and the other language to 2 different cells?

    for example:
    A1 : HAPPYשמחה

    the outcome i would like:
    A2 : HAPPY
    A3 : שמחה

    Thanks!!!

    Ori

  2. #2
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: seperate text from different languages from one cell

    If by any chance your text is more or less regular, you can try your luck with Text to Columns feature, or use any of these functions: LEFT, MID, RIGHT. Also, depending on your text, you could try to add a separator like a comma or a space between the 2 languages using Find/Replace. After that you're more likely to use Text to Columns succesfully.

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: seperate text from different languages from one cell

    regular expressions could be a solution
    Please Login or Register  to view this content.
    Last edited by pike; 12-29-2014 at 07:22 AM. Reason: adjust range to A1
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: seperate text from different languages from one cell

    or depending on your version of excel and inclusion of the AGGREGATE function

    A2=LEFT(A1,LEN(A1)-LEN(A3))

    A3=MID(A1,AGGREGATE(14,6,SEARCH(CHAR(64+ROW(INDEX(A:A,1):INDEX(A:A,26))),A1),1)+1,LEN(A1))

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: seperate text from different languages from one cell

    Her is another one you can try

    for left part

    =LEFT(A2,MAX(IFERROR(FIND(CHAR(ROW(A$65:A$122)),A2),"")))

    for right part

    =RIGHT(A2,LEN(A2)-MAX(IFERROR(FIND(CHAR(ROW(A$65:A$122)),A2),"")))

    ***Both array formulas must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER

    Row\Col
    A
    B
    C
    1
    Mixed Text Left Part Right Part
    2
    universityאוניברסיטה university אוניברסיטה
    3
    bicycle אופניים bicycle אופניים
    4
    breakfastארוחת בוקר breakfast ארוחת בוקר
    5
    hospitalבית חולים hospital בית חולים
    6
    pharmacy בית מרקחת pharmacy בית מרקחת
    Last edited by AlKey; 12-29-2014 at 09:46 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: seperate text from different languages from one cell

    Or another approach:
    array enter (Ctrl + Shift + Enter) in B2; fill down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit: On second thought....that is a lot of function calls. ..... My apologies.....

    Instead: Do AlKey's formula in B2 and in C2 this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and fill down.
    Last edited by FlameRetired; 12-29-2014 at 02:20 PM.

  7. #7
    Registered User
    Join Date
    05-10-2013
    Location
    Pomáz, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: seperate text from different languages from one cell

    Quote Originally Posted by AlKey View Post
    Her is another one you can try

    for left part

    =LEFT(A2,MAX(IFERROR(FIND(CHAR(ROW(A$65:A$122)),A2),"")))

    for right part

    =RIGHT(A2,LEN(A2)-MAX(IFERROR(FIND(CHAR(ROW(A$65:A$122)),A2),"")))

    ***Both array formulas must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER

    Row\Col
    A
    B
    C
    1
    Mixed Text Left Part Right Part
    2
    universityאוניברסיטה university אוניברסיטה
    3
    bicycle אופניים bicycle אופניים
    4
    breakfastארוחת בוקר breakfast ארוחת בוקר
    5
    hospitalבית חולים hospital בית חולים
    6
    pharmacy בית מרקחת pharmacy בית מרקחת
    It does not give correct result if the last character of the English text appears several times, such as universities gives univers (Find function will always find the first occurrence of the given letter).

  8. #8
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: seperate text from different languages from one cell

    or correction from DDL in AlKey's post
    http://www.excelforum.com/excel-form...character.html
    A2=LEFT(A1,MATCH(2,INDEX(1/(ABS(CODE(UPPER(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))-77.5)<13),0)))
    A3=SUBSTITUTE(A1,A2,"")

+ 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] seperate text from alphanumeric content from a cell.
    By emymeeky in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-05-2014, 08:26 AM
  2. Replies: 0
    Last Post: 03-14-2014, 11:29 AM
  3. [SOLVED] Change cell text to different languages
    By Veolia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2014, 09:21 AM
  4. Can you seperate text from one cell into other cells?
    By nguerra in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-21-2014, 04:27 PM
  5. Trying to seperate a lot of vertical text from a single cell.
    By Wendy Collins in forum Excel General
    Replies: 5
    Last Post: 01-31-2013, 07:35 AM

Tags for this Thread

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