excel - how to use a macro to transpose data from rows into columns -


I'm totally new to VBA (aside from recording and running manually), so I was hoping someone could help me with this design. Based on the date and type, I have a worksheet with unrated # rows according to a unique ID (column A). :

  ABCD1 12 Janet 2010 Type Single Person 1 1 16 Parent 2010 Type B Person 1 2 06 DC 2 2 9 Type A Person 2 3 16 DC 2 200 Type A Person 1 5 20 dc 2900 type one person 2 5 02 january 2010 type b person 2 4 10 dc 2 2009 type one person 2, based on unique ID, i will copy this data per 1 copy I want to move to the unique ID, and then put all the rows in sequential order So that it looks like this:  
  ABC 1 person 1 12 January 2010 (A) 16 January 2010 (B) 2 person 2 06 dc 02009 (a) 3 person 1 16 dc 2009 (A) 4 person 2 10 dc 2009 (a) 5 person 2 20 dc 02009 (a) 02 January 2010 (b)  

Can a macro be done in this?

Use a pivot table! Select the entire table, and create a pivot table with column A in the column field, the top field is column B and only calculates column A in the middle aggregate section.

Count the rows on dates and intersections as columns, as a matrix rows of unique IDs you will end up with!


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -