+ Reply to Thread
Results 1 to 4 of 4

Thread: Parse Text Separated by ; to next Row

  1. #1
    Registered User
    Join Date
    06-03-2004
    Posts
    34

    Parse Text Separated by ; to next Row

    Hello All,
    I am using Excel 2007 and have the following problem (file attached with Before and After)

    I have several thousand rows of Data with Col A as Account_No and Col C having two email IDs for the same Account separated by a ;
    eg

    account_no BAL Mail IDs
    977265891 1865 accounts@ashraayenterprise.com;bbire...tiorganics.com
    977356854 346 arun.607@rediffmail.com;sunilthakur2000@yahoo.com
    ...
    ...
    ...
    ...

    I wish to have it like the following
    account_no BAL Mail IDs
    977265891 1865 accounts@ashraayenterprise.com
    977265891 1865 bbirewar@multiorganics.com
    977356854 346 sunilthakur2000@yahoo.com
    977356854 346 arun.607@rediffmail.com


    Can anybody help me with this
    Attached Files Attached Files
    Last edited by prkhan56; 12-24-2011 at 05:14 AM. Reason: Solved

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Parse Text Separated by ; to next Row

    'ROWS TO COLUMNS
    Here's a macro for expanding rows of data to multiple rows parsing out the delimited values in one column while duplicating all the others.Just edit the Col = 3 run it on a copy of your data, make sure the titles are in row1, it should do what you want. There's a sample workbook too you could drop your data into and test it out.

    I installed it into your sheet, just click the button.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-03-2004
    Posts
    34

    Re: Parse Text Separated by ; to next Row

    Super! Brilliant!

    Thanks a lot
    Rashid

  4. #4
    Registered User
    Join Date
    06-03-2004
    Posts
    34

    Re: Parse Text Separated by ; to next Row

    Super! Brilliant!

    Thanks a lot
    Rashid

+ 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.2.0