+ Reply to Thread
Results 1 to 8 of 8

Pivot Table Disable grouping

  1. #1
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Pivot Table Disable grouping

    Hi,
    I have the attached Pivot table.
    When i create this pivot table, it groups some of the "A# and Name"s.
    e.g.
    "A277003 / VICTORIA WILSON"
    "A444302 / YASEMIN KELES"

    Is there for the pivot table to not group by the A# & Name and to list the A# and names on each row...

    Please see Output sheet to see exactly how I would like it?... But i would like this to be done in the pivot table so i can create a macro..... to do this..

    The ones which are bold have been done manually..

    hope you can help.
    Thank you
    Attached Files Attached Files
    Last edited by pr4t3ek; 01-08-2009 at 12:38 AM.
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    PD


    Not that I know about. That is one of the functions of the Pivot Table - to do the grouping.

    However, if you want to use code to do it all, then have it build the pivot table, then copy the results somewhere else, then use code to fill in the missing items. Then use that output to move forward.

    rylo

  3. #3
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483
    Yeah i dont think Pivot tables allow you to to that, not 2003 anyway.

    I've attached the results i guess and i need to fill it..

    how can i do this?...
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Here's a pretty basic loop that should do the fill for you.
    Please Login or Register  to view this content.
    rylo

  5. #5
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483
    hey mate,
    Please see attached

    sheet2 is how it comes out in a pivot....
    such as "AGL Batch" there is no team leader or centre .... etc.

    sheet5 is the result of the macro

    your macro fills it even still.....

    any ideas...
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Bit of a closer look. Seems that columns D and E should always take the value from the last non blank entry, but column A-C should take the values from whatever row matches a non blank item in column A. So with that try

    If that isn't always the case, then try to work out what the fill rules are and, if you can't modify the code, then advise what the rules are and I'll adapt.


    Please Login or Register  to view this content.
    rylo

  7. #7
    Registered User
    Join Date
    12-20-2008
    Location
    US
    MS-Off Ver
    Excel 2007, Student Version
    Posts
    33
    In the Row field of the PivotTable,
    reverse the order of the first three items to
    Centre, Team Leader, A..Name.
    Then change one line of the code to
    If Not IsEmpty(Cells(r, c)) Or r = 3 Then

  8. #8
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483
    thanks guys,
    rylo = yup dat worked perfectly.... thanks

+ Reply to Thread

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