+ Reply to Thread
Results 1 to 3 of 3

Breaking paragraph into separate phrases and putting each phrase in separate rows

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2003
    Posts
    9

    Breaking paragraph into separate phrases and putting each phrase in separate rows

    Hi,

    I have pasted a group of paragraphs in my excel sheet. Now, wherever a separator (say a comma or a fullstop or a backslash) is appearing anywhere in that group of paragraphs, i want the succeeding phrase to automatically go to the next row and so on till all the phrases are separated and we get a "n X 1" matrix, where 'n' is my number of phrases.

    Could anyone please help me out?


    Thanks,
    Shashank
    Last edited by shashankbansal; 07-09-2012 at 02:40 AM.

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Breaking paragraph into separate phrases and putting each phrase in separate rows

    Try this attachment on for size--

    This ended up being 2 x n (well, 3 x n, but the first is a superfluous column that exists for the reader, not for the functions; delete it without worries if you'd like). The first column finds the next punctuation mark you're interested in with SEARCH, and the second column slices out everything between that mark (inclusive) and the last one (exclusive).

    If you really truly need it to be a true array of 1 x n elements, than in the second column, just replace every reference to a cell in the first column with the content of that cell. The formulas will get pretty ugly looking and long, but w/e.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-05-2012
    Location
    Delhi, India
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Breaking paragraph into separate phrases and putting each phrase in separate rows

    Thanks Ben..! It's working perfectly.. infact i could add more number of separators in the code you have provided and further improvise on the result.

    Thanks very much again.


    Warm Regards,
    Shashank

+ 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