+ Reply to Thread
Results 1 to 7 of 7

Parse string and move data to multiple rows

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    23

    Parse string and move data to multiple rows

    Hi, I have a column which have values like "Any|Red|Blue|Green|Purple". Excel provides options to split this into columns, but I want to split it into new rows (without overwriting). Can someone help me with this?

  2. #2
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Parse string and move data to multiple rows

    vbvamsi,

    What you are saying does not make sense. The values you mentioned are already in their own row.
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  3. #3
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: Parse string and move data to multiple rows

    Somebody else might have a more elegant solution, but here is what I would do:

    1. Split into columns with excel's text to columns
    2. Copy result --> paste special --> transpose. This will get it into rows.

    Of course, you will have to make sure you do not overwrite anything.
    Regards,
    Vandan

  4. #4
    Registered User
    Join Date
    05-30-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Parse string and move data to multiple rows

    Hi vandan_tanna, I tried transpose, but it is overwriting the data in the below rows. I want it to be copied into new rows. Below is an example.
    This will be the original table
    id text1 text2
    id1 a e
    id2 b f

    This should be changed to
    id text1
    id1 a
    id1 e
    id2 b
    id2 f

  5. #5
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Parse string and move data to multiple rows

    vbvamsi,

    Perhaps a workbook would help.
    With "Before" and "After"

  6. #6
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: Parse string and move data to multiple rows

    This example looks much different one than the one in your original post.

    Please upload the excel file so we can see your actual data layout (or if the data is proprietary then make up mock data) and propose a proper solution?

  7. #7
    Registered User
    Join Date
    05-30-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Parse string and move data to multiple rows

    yes. In my original post, I had all the text in 1 cell. But I was able to split it into multiple columns to make things easier.
    Anyways I solved the problem. I copied everything to notepad++ and changed the format easily and pasted back to excel. Now everything looks exactly like I wanted. took only a minute in notepad++ .

+ 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