+ Reply to Thread
Results 1 to 4 of 4

Copying horizontal to vertical based on cell value

  1. #1
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Copying horizontal to vertical based on cell value

    Hello all,
    I have changed the wb slightly from my earlier post, which should make it easier.

    In the feedback sheet cell B4 you can select a student. I need it to find the row with the same student name in the 'Marks' sheet, and take the data from B:U (only the one row for student selected) and paste into C7:C26.

    Is this possible? wb attachedBTEC Feedback for net.xlsm

    Thank you all

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Copying horizontal to vertical based on cell value

    in C7, copied down, try this...

    =INDEX(Marks!$A$1:$U$31,MATCH(Feedback!$B$4,Marks!$A$1:$A$31,0),MATCH(Feedback!B7,Marks!$A$1:$U$1,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    07-30-2012
    Location
    Leeds
    MS-Off Ver
    Excel 2013
    Posts
    177

    Re: Copying horizontal to vertical based on cell value

    Hi FDibbins,
    It works perfectly! I had to change the P1 to U1P1 and U23P1 as it returned the value for the first instance of P1 twice, but after that it does exactly what I need it to!

    Many Thanks!!!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Copying horizontal to vertical based on cell value

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

+ 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