+ Reply to Thread
Results 1 to 7 of 7

Transpose column against repeated cells

  1. #1
    Registered User
    Join Date
    10-07-2020
    Location
    new jersey
    MS-Off Ver
    2019
    Posts
    56

    Transpose column against repeated cells

    Hi,

    I am working on a file that needs to be uploaded in software. Challenge is that I need to transpose the data as attached in the sample file first which takes a lot of time of mine. Please help me. I am not sure how to do it.

    Attached is sample file.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,371

    Re: Transpose column against repeated cells

    I don't understand why you are using the old .xls format with Excel 2013. I have provided a solution using PowerQuery:

    M Code:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

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

    Re: Transpose column against repeated cells

    3 Formulae.

    A2, copied across and dnown:
    =IFERROR(INDEX(Main!$A:$I,AGGREGATE(15,6,ROW(Main!$A$2:$A$15)/(Main!$A$2:$A$15<>""),1+INT((ROWS(A$2:A2)-1)/7)),MATCH(A$1,Main!$A$1:$I$1,0)),"")

    J2, copied down:
    =IF($A2="","",INDEX(Main!$L$1:$R$1,,1+MOD((ROWS(J$2:J2)-1),7)))

    K2, copied down:
    =IF($A2="","",INDEX(Main!$L$2:$R$15,1+INT((ROWS(K$2:K2)-1)/7),1+MOD((ROWS(K$2:K2)-1),7)))

    adjust the bits in red to give yourself some spare capacity... saved as an xlsx. Why are you still using the obsolete .xls format???
    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

  4. #4
    Registered User
    Join Date
    10-07-2020
    Location
    new jersey
    MS-Off Ver
    2019
    Posts
    56

    Re: Transpose column against repeated cells

    Thanks a lot for your prompt response.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,371

    Re: Transpose column against repeated cells

    Which of us are you thanking?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Registered User
    Join Date
    10-07-2020
    Location
    new jersey
    MS-Off Ver
    2019
    Posts
    56

    Re: Transpose column against repeated cells

    I thanked AliGW and Glenn. Also added reputation. once again thanks alot.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,371

    Re: Transpose column against repeated cells

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Transpose rows of data to column, with 1st cell in row repeated
    By ads111ads in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-25-2020, 08:16 AM
  2. Replies: 3
    Last Post: 11-20-2018, 09:27 PM
  3. If Customer ID Repeated more then 1 then lender value copy and paste transpose
    By upguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2017, 02:37 PM
  4. Formula for counting text values in column when value is repeated in cells
    By Blubirdjim in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-11-2012, 12:36 PM
  5. Replies: 9
    Last Post: 07-22-2012, 12:03 PM
  6. [SOLVED] Match cells in Column A, then transpose (matching) row data from column B, C, D, etc.
    By Jahoker in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-15-2012, 10:37 AM
  7. Replies: 6
    Last Post: 07-05-2011, 07: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