+ Reply to Thread
Results 1 to 5 of 5

How to collapse Data into one line (similar to a transpose, but not quite)

  1. #1
    Registered User
    Join Date
    03-05-2008
    Posts
    3

    How to collapse Data into one line (similar to a transpose, but not quite)

    Hello,

    I was hoping someone might be able to provide some insight in to a problem Im stuck on.

    I have the following data format in excel:

    studentID lName fName HomeGrp classCode className teacherCode teacherLname teacherfName (all on one line)

    this data is repeated for each class the student is in per line, so the same studentID can appear each line for each different class they are in.

    I am trying to "collapse" the last 5 fields to append onto the end of the first line, so that I only have one line for each student, with multiple classes and teachers appearing at the end of the appropriate line.

    Example:
    studentID lName fName HomeGrp classCode className teacherCode teacherLname teacherfName classCode1 className1 teacherCode1 teacherLname1 teacherfName1 etc....

    I have been blundering about with Excel Macros, but Im not skilled with them. I was hoping someone might be able to point me in the right direction.

    Thanks for your time,
    Damien.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Why? The data is much more suitable for analysis in its current state.

  3. #3
    Registered User
    Join Date
    03-05-2008
    Posts
    3
    I need each individual student record on one line so I can do a mail merge.

  4. #4
    Registered User
    Join Date
    03-05-2008
    Posts
    3

    Problem Solved!!

    Thanks shg, youve made me rethink my attack.

    My problem can be overcome by using the "IF" statement within my mail merge.

    Here is the link that explains it all much better than I ever could:

    WD2000: How to Work Around Duplicate Names in Mail Merge Data

    http://support.microsoft.com/kb/302665

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Well done!

+ 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