+ Reply to Thread
Results 1 to 3 of 3

Grouping in Pivot Table with varying count of fields

  1. #1
    Registered User
    Join Date
    11-25-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Grouping in Pivot Table with varying count of fields

    Hello

    I have a Pivot Table that is constructed from a macro which sometimes works and sometimes doesn't. The reason being is I have three seperate groups in the Pivot Table and the third group changes in size each month. In my macro for the third group I currently have;

    Range("M12:M38").Select
    Selection.Group

    So I had 27 different types in this group when the macro was created but I want to change the code in the macro so it searches for the last cell before the Grand Total in the Pivot Table and will then group from M12 (always constant) to that last Active Cell and label it as International. This is an extract of what my Pivot Table currently looks like and in it you will see the International Group only has four diferent types this time;


    Sum of Duration

    Type Prefix Total

    Fixed 02 493.27
    03 105.55
    07 320.13
    08 198.84 1117.79 (subtotal of Fixed, Cell currently outside of Pivot Table)
    Mobile 04 797.27 797.27 (subtotal of Mobile, Cell currently outside of Pivot Table)
    International 32 487.48
    44 27.56
    62 112.25
    66 140.26 767.55 (subtotal of International, Cell outside of Pivot Table)
    Grand Total 2682.61

    I will also need the subtotal of the third group to be variable as well. These subtotals are currently outside the PivotTable but can be moved inside the Pivot Table if it makes it easier code wise inside the Macro.

    Any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by Scotch_And_Dry; 11-25-2009 at 11:23 PM. Reason: Add attachment...

  2. #2
    Registered User
    Join Date
    11-25-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel Macro, Grouping in Pivot Table with varying count of fields

    Can anyone help with this please?

  3. #3
    Registered User
    Join Date
    11-25-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel Macro, Grouping in Pivot Table with varying count of fields

    Bump, No Response.

+ 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