+ Reply to Thread
Results 1 to 10 of 10

split the sentence in to four parts

  1. #1
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    split the sentence in to four parts

    I have a sentence in column F. Some of the sentences contains 4 types which I want to split in to four columns in column I, J, K, L

    Example given in attachment.

    Please provide code with your comment about the function to understand the code.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: split the sentence in to four parts

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    Re: split the sentence in to four parts

    Hi Jindon,

    It is almost working

    can you please refer 24th and 25th record in attachment. There was no 4 parts but still got seperated
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: split the sentence in to four parts

    saravanan1981

    You need to explain the whole logic how to separate the sentence.

  5. #5
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    Re: split the sentence in to four parts

    oh ok.

    in one sentence check for
    "1." "2." "3." and "4." (these are number of parts)
    "1. " "2. " "3. " and "4. " (these are number of parts)
    "1," "2," "3," and "4," (these are number of parts)
    "1)" "2)" "3)" and "4)" (these are number of parts)

    "PLEASE PROVIDE ME OPTION TO ADD MORE NUMBERING FORMATS IN CODE. MEANS I SENTENCE MAY CONTAINS NUMBERS LIKE 1/, 2/ 3/ OR 4/

    we have to separate the string which starts from 1st part like "1. or 1. or 1, or 1)" OR "1) OR 2) OR 3) OR 4) and till the beginning of the second part including spaces and special characters

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: split the sentence in to four parts

    That what the code exactly does.

    It doesn't explain about row 25/26 you added.

  7. #7
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    Re: split the sentence in to four parts

    sentence in row 25 = JIO SA ID: 036640,036641,036642,036643,03664 PAYMENT TRANSFER REFERENCE NO:AXIS S 70460164,AXTB 983472656 TOTAL AMOUNT:16985/-

    in this there is no separator number like "1. or 1. or 1, or 1)" OR "2. or 2. or 2, or 2)"

    PLEASE REFER ROW2 =1)RENEWAL 2)030150 3)SBIN615300890254 4)16985
    IT HAS PROPER SEPARATOR LIKE 1), 2), 3) and 4)


    PLEASE REFER ROW3 =1. 1st phase 2. JIOM3LG15304 3. UTR NO. 856755129 4. Rs. 3305/-
    IT HAS PROPER SEPARATOR LIKE 1., 2., 3. and 4.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: split the sentence in to four parts

    So what's wrong with the results?

    Is there any difference between your result and my result?

  9. #9
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    Re: split the sentence in to four parts

    YES THERE IS A DIFFERENCE

    ALL ROWS ARE CORRECT EXCEPT 25 AND 26.

    25 AND 26 SHOULD RESULT SHOULD COME AS N/A because THERE WAS NO NUMBER SEPARATER. BUT 25 AND 26 TOO EXTRACTING. PLEASE FIND THE ATTACHMENT WITH RESULTS (MARKED IN RED)
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: split the sentence in to four parts

    I thought you that was your desired result.,,,

    Change to
    Please Login or Register  to view this content.

+ 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. Replies: 4
    Last Post: 11-11-2015, 03:00 PM
  2. formatting of split parts
    By hutia in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-04-2015, 08:55 AM
  3. Split long text in two parts
    By Marvin85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2014, 03:12 PM
  4. [SOLVED] Split a string into parts
    By LeahS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-01-2013, 09:33 AM
  5. [SOLVED] Dim String, and divide/split into parts
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-19-2012, 12:37 PM
  6. Moving parts of a sentence to different cells
    By Fish10800 in forum Excel General
    Replies: 1
    Last Post: 02-07-2012, 04:06 PM
  7. Split Number into Four Separate Parts
    By Gos-C in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2005, 02:08 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