+ Reply to Thread
Results 1 to 10 of 10

Splitting Information in columns into seperate rows

  1. #1
    Forum Contributor
    Join Date
    01-28-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    105

    Splitting Information in columns into seperate rows

    Hi, I have attached a spreadsheet which probably is intuitive as to what i want to do as it shows the raw data and how i want it to look.
    I have rows of data, some with long strings of different contact info for an individual
    I just want to split up the contact info into seperate rows for that individual.

    i.e I might have a guy named bob smith with 2 sets of contact information in the row.
    I want to split it up, so it shows bob smith and 1 set of contact info in one row. In the second row it should have bob smith and the second set of contact information.

    It should be fairly simple just not sure how to do it.
    Attached Files Attached Files
    Last edited by undergraduate; 11-19-2010 at 06:15 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Splitting Information in columns into seperate rows

    Not sure how you can judge whether it's simple or not, but anyway here is one approach:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-28-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Splitting Information in columns into seperate rows

    Thank you for your help, now lets say I increased the number of columns for either the standard data or the variable contact information data, how do I account for those changes in the macros you provided. I dont really understand what is going on it.

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Splitting Information in columns into seperate rows

    Change the nCol line. It still assumes your subsequent cols are grouped in twos.
    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Splitting Information in columns into seperate rows

    I think this will cater for columns being grouped into 3s or whatever - change nSeq line.
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    01-28-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Splitting Information in columns into seperate rows

    Thank you that was very helpful! It tells me sometimes object required, do you know why at the Sheet1 current region line?

  7. #7
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Splitting Information in columns into seperate rows

    To be honest, I cannot think what causes that. Can you post a sample which illustrates the problem?

  8. #8
    Forum Contributor
    Join Date
    01-28-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Splitting Information in columns into seperate rows

    Thank you, i figure out the problem before.
    I encountered one last problem. I tried increased sequence to 3. I have attached the spreadsheet, I get an undefined error when i run the attached macros. Any idea why this is occuring?

    Sorry it says "subscript out of range"
    Attached Files Attached Files
    Last edited by undergraduate; 11-19-2010 at 01:45 PM.

  9. #9
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Splitting Information in columns into seperate rows

    I haven't had time to look through yet, but I don't think 7 and 3 works because you have 5 columns which do not vary and then 3 which rotate so your ncol would have to be 8 I think.

    EDIT: in any case the code did not work, but I think this sort is out:
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    01-28-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    105

    Re: Splitting Information in columns into seperate rows

    thank you that worked perfectly

+ 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