+ Reply to Thread
Results 1 to 4 of 4

Help with moving multiple columns and checking alignment

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Help with moving multiple columns and checking alignment

    Hi there-

    I work with school data, based with standards and all that jazz. What i need help with is the following:

    The data that I get is: Sheet3.xlsx

    What the data needs to look like is: Sheet4.xlsx


    Essentially, i need to be able to move and align all the columns to each other, so that each student's individual data stays with each student, but moves to the different columns. I've tried using a transpose macro, but it doesn't work quite right, because occasionally a student has only a few out of the 4 scores required. If there is no score, it does not leave me a blank (which is what it needs to be) but the data just goes to the next record.

    can anyone help me?

    If you need me to explain further, please let me know, and I can try to explain better.

    Thanks!

    -TheMeg

  2. #2
    Registered User
    Join Date
    06-22-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Help with moving multiple columns and checking alignment

    bump for views

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Help with moving multiple columns and checking alignment

    Hi TheMeg

    Try the code in the attached...let me know of issues.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Help with moving multiple columns and checking alignment

    Hi TheMegs,

    I was working on this earlier, but haven't had internet access for quite some time. Anyway, I see John has provided an excellent solution using VBA, but my VBA talents are not even close but I would like to at least post what I came up with.

    I used some of the same methods, but I did it the manual way.

    Data tab >> Advanced

    Advanced Filter
    • Action: Copy to another location
    • List range: Before!$A:$B
    • Copy to: Before!$G$1
    • Check >> Unique records only
    • OK

    Copy C2:C5
    Right click cell I1 >> paste special >> Transpose

    I2 array entered formula copied right and down
    Please Login or Register  to view this content.
    IMPORTANT
    This is an array formula
    Enter the formula >> press F2 then >> CTRL + SHIFT + ENTER
    If entered correctly, the formula will be enclosed in {brackets}
    Do not enter the {brackets} manually

    Again not as quick as John's VBA, but for me, quicker than I could have come up with his VBA solution
    Attached Files Attached Files
    HTH
    Regards, Jeff

+ 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