+ Reply to Thread
Results 1 to 4 of 4

Moving headers and cell information

  1. #1
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Moving headers and cell information

    I have an extensive Excel file that was converted from a PDF. That is my problem because it does not put the information on the sheet the way I need it to so I can upload it to a database. Right now I have to type in all the information which is taking forever. Here is what I need. You would be saving me tons of hours if this can be done.

    The file is attached: It needs to look like this:

    StudentID (Which in this example is 169058) needs to have it's own column
    Name, (In this example is Doe, John) needs to have it's own column
    DOB
    Description, own column
    Teachers, own column
    H1, H2, H3, H4, Fin, Avg Fin, all have it's own column.

    I don't need the rest. As you will see in the attachment the headers are on the top and the information is inside the cells. I have 2500 students like this. So hopefully it would look like this:

    StuID, Name, DOB, Description, Teacher, H1, H2, H3, H4, Fin, Avg Fin.

    Can this be done?
    Attached Files Attached Files
    Last edited by taichi56; 02-25-2011 at 06:08 PM. Reason: SOLVED

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Moving headers and cell information

    Hello taichi56,

    The macro below has been added to the attached workbook. The reformatted results are appear on "Sheet2". There is button to run the macro in cell "B1".
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Moving headers and cell information

    Try this

    Please Login or Register  to view this content.

    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007.
    Martin

  4. #4
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Solved

    Man you guys are awesome. It is exactly what I need. I just need to add a column title Period and Avg Fin. I am working on it to see if I can get it, but probably not.

    I figured it out. Thank you guys.
    Last edited by taichi56; 02-25-2011 at 06:07 PM. Reason: SOLVED

+ 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