+ Reply to Thread
Results 1 to 5 of 5

Transpose Columns to Rows While Repeating Data in First Column to Each Row

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    Addis
    MS-Off Ver
    Excel 2013
    Posts
    16

    Transpose Columns to Rows While Repeating Data in First Column to Each Row

    I have a data that looks like this:

    Please Login or Register  to view this content.
    I want the output to be like

    Please Login or Register  to view this content.
    So, simply, repeating column A data n times in each row, where n is the number of columns with the data to be transposed (in this case 3).
    I've attached the data I have to make things clearer.

    Can this be done?

    Thanks for your time
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Transpose Columns to Rows While Repeating Data in First Column to Each Row

    The out put on sheet result.
    Attached Files Attached Files

  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 2403
    Posts
    44,063

    Re: Transpose Columns to Rows While Repeating Data in First Column to Each Row

    Hi there.

    Product ID
    =OFFSET($A$4,INT((ROWS($1:1)-1)/19),,,)

    Header
    =OFFSET($B$3,,MOD((ROWS($1:1)-1),19),,)

    Data
    =OFFSET($B$3,INT((ROWS($1:1)-1)/19)+1,MOD((ROWS($1:1)-1),19),,)
    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

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Transpose Columns to Rows While Repeating Data in First Column to Each Row

    Here's another approach that doesn't use volatile functions:

    A11: =INDEX($A$4:$A$7,INT((ROWS($1:1)-1)/19)+1)

    B11: =INDEX($B$3:$T$3,MOD(ROWS($1:1)-1,19)+1)

    C11: =INDEX($B$4:$T$7,INT((ROWS($1:1)-1)/19)+1,MOD(ROWS($1:1)-1,19)+1)

    Copy down to row 86.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    09-26-2012
    Location
    Addis
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Transpose Columns to Rows While Repeating Data in First Column to Each Row

    Thanks guys, I've got exactly what I was looking for. All the methods work perfectly.

+ 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] How to transpose / convert columns and rows into single column?
    By chief_abound in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-09-2015, 08:04 PM
  2. Replies: 7
    Last Post: 02-05-2015, 03:20 PM
  3. Transpose a set of 6 rows to one column and repeat for next columns
    By labamba in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-14-2013, 05:06 AM
  4. [SOLVED] How to transpose one column into multiple rows and columns?
    By Raoul Gonzo in forum Excel General
    Replies: 4
    Last Post: 01-15-2013, 11:00 AM
  5. Transpose columns of data in rows
    By Absar in forum Excel General
    Replies: 4
    Last Post: 09-14-2010, 09:10 PM
  6. Repeating data in 1 column to multiple columns
    By tjones in forum Excel General
    Replies: 2
    Last Post: 12-07-2007, 07:50 PM
  7. Replies: 0
    Last Post: 07-31-2006, 12:13 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