+ Reply to Thread
Results 1 to 3 of 3

Excel Formula to separate Word in a Text

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Malaysia
    MS-Off Ver
    Office 2010
    Posts
    7

    Excel Formula to separate Word in a Text

    hi, i have a text as follows:

    Gedung Grha Xl, Jl. Dr. Ide Anak Agung Gde Agung Lot E4-7 No.1 Kuningan Timur-Setiabudi Jakarta Selatan, Dki Jakarta Raya 12950

    i want the text to separate into different columns lets say column B and C.

    i have the following formula to do the job

    =TRIM(LEFT(LEFT(A1,59),FIND("^^",SUBSTITUTE(LEFT(A1,59)," ","^^",LEN(LEFT(A1,59))-LEN(SUBSTITUTE(LEFT(A1,59)," ",""))))))

    &

    =SUBSTITUTE(A1,B1,"")

    which gives the above text in

    column B = "Gedung Grha Xl, Jl. Dr. Ide Anak Agung Gde Agung Lot E4-7"
    column C = " No.1 Kuningan Timur-Setiabudi Jakarta Selatan, Dki Jakarta Raya 12950"

    Now i wanted a formula that will divide the text into 3columns which the second column will cut the character at 28 for example:

    Column B = "Gedung Grha Xl, Jl. Dr. Ide Anak Agung Gde Agung Lot E4-7"
    Column C = " No.1 Kuningan"
    Column D = "Timur-Setiabudi Jakarta Selatan, Dki Jakarta Raya 12950"

    Please ensure that the results will give the full wording and doesn't cut the word into half. Also, there will be no Column D if the text is not long enough.

    Thanks

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Excel Formula to separate Word in a Text

    Hello su2009,

    These formulas are not very useful if you have different address information!

    They will only work if the number of characters in the first line is constant.

    For example, if Dr Ide Anak was Dr David Anak, it would fail.

    If you want to break these addresses up, you need to have some other form id delimiter inserted in the address line.

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  3. #3
    Registered User
    Join Date
    11-17-2015
    Location
    Malaysia
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Excel Formula to separate Word in a Text

    hi David,

    Do you have any other formula that can help me? As i do not have any other form id delimiter

+ 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] Excel2010 IF Formula to return value based on a separate date and two separate text values
    By jakecutler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2015, 03:24 AM
  2. [SOLVED] Separate the last word of a string of text in a cell
    By ClaireH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2013, 06:33 AM
  3. Want excel formula/macro to pull external text string from WORD and display in excel
    By crnadeau4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2013, 12:49 PM
  4. [SOLVED] Separate text string at each occurance of a given word
    By tplunkett41 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-18-2012, 12:56 PM
  5. [SOLVED] How to separate multi-word text?
    By KiwiLad in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-25-2012, 12:58 AM
  6. [SOLVED] Need advice, formula problem - separate the last word in sentence ?
    By zeko90 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-13-2012, 07:25 AM
  7. Replies: 6
    Last Post: 01-22-2012, 12:39 PM

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