Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Pivot Grouping

Pivot Table Grouping
If I have a defined grouping based on a set of number e.g. Field 1="Group"
Field2="Code"

Group Code
Group One = 23453
56773
23456

Group Two = 33333

When a new number is added to the pivot table data source €“ Code field
How can I group it into Group One without manually re-grouping?

Ideally an if statement to say if Code is not = to (<) 33333 then Group One,
But I dont know how to write it and more importantly where to put it.

--
Regards,

Donica

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Pivot Grouping

Why not just create a new field in your source data that uses some logic to
populate the grouping. Doing it this way you can use a Vlookup (or some other
function) and you do not have to worry about doing the grouping from within
the pivot table.
--
HTH...

Jim Thomlinson


"Donica" wrote:

Pivot Table Grouping
If I have a defined grouping based on a set of number e.g. Field 1="Group"
Field2="Code"

Group Code
Group One = 23453
56773
23456

Group Two = 33333

When a new number is added to the pivot table data source €“ Code field
How can I group it into Group One without manually re-grouping?

Ideally an if statement to say if Code is not = to (<) 33333 then Group One,
But I dont know how to write it and more importantly where to put it.

--
Regards,

Donica

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Pivot Grouping

ok this might work, but the pivot table data source is dynamic -

what your suggesting is keep the datasource tab w/ all the data hide it and
run a macro each time the source data is refreshed to have a grouping column
with a and b in it?

just want to verify your though process and make sure I can talk to hidden
tabs in code..

Regards,

Donica



"Jim Thomlinson" wrote:

Why not just create a new field in your source data that uses some logic to
populate the grouping. Doing it this way you can use a Vlookup (or some other
function) and you do not have to worry about doing the grouping from within
the pivot table.
--
HTH...

Jim Thomlinson


"Donica" wrote:

Pivot Table Grouping
If I have a defined grouping based on a set of number e.g. Field 1="Group"
Field2="Code"

Group Code
Group One = 23453
56773
23456

Group Two = 33333

When a new number is added to the pivot table data source €“ Code field
How can I group it into Group One without manually re-grouping?

Ideally an if statement to say if Code is not = to (<) 33333 then Group One,
But I dont know how to write it and more importantly where to put it.

--
Regards,

Donica

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table - Grouping slow386 Excel Worksheet Functions 3 April 1st 08 08:21 PM
pivot table and grouping cricket7 Excel Discussion (Misc queries) 4 July 30th 07 08:56 AM
pivot grouping BorisS Excel Discussion (Misc queries) 1 September 12th 05 09:00 PM
Pivot Table Grouping GRITS Excel Programming 0 August 30th 04 04:34 PM
Pivot Table Grouping Mike Waldron[_2_] Excel Programming 0 April 26th 04 10:15 PM


All times are GMT +1. The time now is 11:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"