+ Reply to Thread
Results 1 to 7 of 7

Data from Multiple columns with identical headings to be under the same heading

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    san jose
    MS-Off Ver
    Excel 2010
    Posts
    15

    Data from Multiple columns with identical headings to be under the same heading

    Book2.xlsxI have one VERY long row with repeating column headers. I want to transpose the row into multiple rows grouped by common headers. Conversely, I could convert the long row by every X number of columns because the data repetition is consistent. Attached is a brief example of what I am trying to accomplish. Please help with any formula to do so. Thank you!!!
    Last edited by gunner05; 12-18-2013 at 02:21 PM. Reason: Added excel file

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Multiple columns with same headings to be under

    like this? this is for four catagories
    for say 6 cats change last bit of index to
    (COLUMN(A1)-1)+ROW(A1)*6-5
    Attached Files Attached Files
    Last edited by martindwilson; 12-18-2013 at 02:16 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    02-28-2013
    Location
    san jose
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Multiple columns with same headings to be under

    Quote Originally Posted by martindwilson View Post
    like this? this is for four catagories
    for say 6 cats change last bit of index to
    (COLUMN(A1)-1)+ROW(A1)*6-5
    Hi that works good but I do not want to limit it to just Column A to L. There are thousands of columns and many more column headers that are in the spreadsheet and I want to include other column headers too..Is there any way to have the cloumn and the amount of data it can handle go to infinity?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Data from Multiple columns with identical headings to be under the same heading

    change the bit as i said at the end to where your columns start to repeat
    so if there are 50 repeating columns
    (COLUMN(A1)-1)+ROW(A1)*50-49

    doesnt matter where you start put that formula in say k12 EXACTLY as it is do not change column(a1) or row (a1) leave it as it is just change the end bit
    here's 50 repeating columns
    note if your data starts in column a you can use
    =INDEX($2:$2,(COLUMN(Z1)-1)+ROW(Z1)*50-49) where $2:$2 is row 2
    else as last column is XFD
    so say $d$2:$xfd$2
    Attached Files Attached Files
    Last edited by martindwilson; 12-18-2013 at 03:01 PM.

  5. #5
    Registered User
    Join Date
    02-28-2013
    Location
    san jose
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Data from Multiple columns with identical headings to be under the same heading

    row to 4 columns-1.xlsx
    Quote Originally Posted by martindwilson View Post
    change the bit as i said at the end to where your columns start to repeat
    so if there are 50 repeating columns
    (COLUMN(A1)-1)+ROW(A1)*50-49

    doesnt matter where you start put that formula in say k12 EXACTLY as it is do not change column(a1) or row (a1) leave it as it is just change the end bit
    here's 50 repeating columns
    note if your data starts in column a you can use
    =INDEX($2:$2,(COLUMN(Z1)-1)+ROW(Z1)*50-49) where $2:$2 is row 2
    else as last column is XFD
    so say $d$2:$xfd$2
    Hi Martin, I think I am almost there. What if I do not know how many categories (unique column names) are in the data but I just want to match the data to the column names? Also, how do I paste the fomulas down the rows? (See attached errors in Sheet2). Thank you so much for your time.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Data from Multiple columns with identical headings to be under the same heading

    your sample is not repeating regularly see red in attached
    Attached Files Attached Files

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Data from Multiple columns with identical headings to be under the same heading

    ok another go
    Attached Files Attached Files

+ 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] Delete Multiple Columns with specific column headings using a Macro.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-30-2013, 07:28 PM
  2. Replies: 1
    Last Post: 01-15-2013, 02:52 AM
  3. How do I add headings to my combo box columns.
    By hbsclaims in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2012, 12:18 PM
  4. Macro required to move Columns and addidng columns with headings
    By sponge_designs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2009, 08:20 PM
  5. List box with multiple columns and headings
    By Khaos176 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2009, 04:31 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