Results 1 to 20 of 20

macro to create pivot table(s) and sort out data in other worksheet

Threaded View

  1. #1
    Guest
    Join Date
    05-15-2009
    Location
    Paris, France
    MS-Off Ver
    Excel 2003
    Posts
    40

    macro to create pivot table(s) and sort out data in other worksheet

    Hi,

    Attached is my workbook.
    The first sheet is the row data given to me, the second one is where I want my data to be analysed automatically by macros.

    I managed to create a pivot table manually to give me the info I want but then I still have to copy all the results from the pivot table sheet to my analysis sheet.

    How can I create a macro able to do all that by it self? I tried to record a macro using the recorder but then when I try to play it it gives me an error straight at the beginning in the definition of the pivot table I think.

    An example of what I want the pivot table to do is:
    in the first sheet, go in the small table in column K and L, take the value of L1, then in the row data in column A to J, in column C look for the value in L1, once found, look for the value 1 in column J then do the average on the values in column E and put the result in my second sheet in cell F5
    then do the same but look for 2 in column J and put it in F8, then 3 in F11, ... until 7 found (the data is in ss.000 and so the results in the second sheet should be formated the same way)
    then do the same all over again for value in L2
    etc etc etc

    this should be done for the 6 values in column L, each having values up to 7 in the J column.

    Then I need to do the same for other columns and not only averages but minimums as well but I can adapt the code I think.

    Thanks in advance for the help!!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

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