Closed Thread
Results 1 to 10 of 10

Transposing multiple rows in columns for each unique name in column A

  1. #1
    Registered User
    Join Date
    12-14-2021
    Location
    Manchester, England
    MS-Off Ver
    2019
    Posts
    31

    Transposing multiple rows in columns for each unique name in column A

    I would like to transpose multiple rows into columns as per the spreadsheet i've attached.

    The left hand side is much much larger and takes far too long doing this manually.

    The right hand side is what I want to convert the left hand side too.

    Is there an easier way of doing this with formulas?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Transposing multiple rows in columns for each unique name in column A

    Q2:
    =IF(R2="","",INDEX($E$1:$K$1,1+MOD((ROWS(Q$2:Q2)-1),7)))

    R2:
    =IFERROR(INDEX($A$2:$A$7,1+INT((ROWS(R$2:R2)-1)/7)),"")

    S2:
    =IFERROR(INDEX($E$2:$K$7,1+INT((ROWS(S$2:S2)-1)/7),1+MOD((ROWS(S$2:S2)-1),7)),"")

    all copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-14-2021
    Location
    Manchester, England
    MS-Off Ver
    2019
    Posts
    31

    Re: Transposing multiple rows in columns for each unique name in column A

    you sir are a genius and a life saver. Thank you!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Transposing multiple rows in columns for each unique name in column A

    @Glenn: The above formulae appeared as CSE entries (in 2010) even though you did not state this as required in your post: similar to the SUMPRODUCT case ?
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Transposing multiple rows in columns for each unique name in column A

    Yes, JT. Those formulae should work fine in 2010 without CSE. This is really odd.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Transposing multiple rows in columns for each unique name in column A

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  7. #7
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,293

    Re: Transposing multiple rows in columns for each unique name in column A

    PQ
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-03-2022
    Location
    Perth, Western Australia
    MS-Off Ver
    2007
    Posts
    13

    Re: Transposing multiple rows in columns for each unique name in column A

    I have a similar problem as the first question, but with uneven number of columns to start with.

    Could I still use the same principle and set the selection to the largest number of columns?
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Transposing multiple rows in columns for each unique name in column A

    You should open a new thread but ..

    Helper column in H & i

    in A16

    =INDEX(A$4:A$11,MATCH(ROWS($1:1),$I$4:$I$11,1))

    copy across to B and down

    in C16

    =INDEX($C$4:$F$11,MATCH(ROWS($1:1),$I$4:$I$11,1),COUNTIF($E$16:$E16,$E16))

    copy down
    Attached Files Attached Files

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Transposing multiple rows in columns for each unique name in column A

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Transposing Multiple Columns Into Unique Rows
    By D.Wizard in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2021, 05:43 AM
  2. Replies: 6
    Last Post: 09-28-2017, 11:33 AM
  3. [SOLVED] Transposing multiple in columns into 3 Rows
    By dhiresh in forum Excel General
    Replies: 3
    Last Post: 03-25-2015, 05:59 AM
  4. [SOLVED] Transposing multiple rows and columns to one column
    By amoto in forum Excel General
    Replies: 3
    Last Post: 07-29-2013, 05:50 PM
  5. Merge rows according to unique IDs in column A- with multiple columns
    By inbars in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-26-2013, 08:03 PM
  6. [SOLVED] transposing multiple columns to rows
    By atiul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2012, 08:05 AM
  7. Replies: 1
    Last Post: 03-18-2009, 04:18 PM

Tags for this Thread

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