VB regarding pivot tables

  • Thread starter Thread starter marina madeleine
  • Start date Start date
M

marina madeleine

I had posted this before and I know it may be a challenging one, but I
am wondering if anyone might know how to do this:

Is there a way to program advanced formulas into an excel pivot table.
For example, if you have created a pivot table and it has a drop down
menu for age groupings from which users can select from a wide range of
age groupings, for example:

age 1-5
age 5-10
age 15-20
age 20-25

Is there a way to program the pivot table to do the following:

1) identify if the "standard set" of age groupings: age 5-10, age
15-20, age 25-25 are in the selection in the drop down list
2) if the all the "standard set" age groupings are there, aggregate
them all to make one age grouping "age 5-25"
3) add this new calculated age grouping to the pivot table and the list
in the drop down list for age groupings (but only if all of the age
groupings are there).
4) if all the the "standard set" age groupings are not there to do an
aggregation, then do nothing for that age grouping aggregation.

Looking forward to your suggestions.

Marina Madeleine
 
The easiest way to do this would be on the source data with a dummy column.
 
Tom,
I regularly do this. Add a dummy column to the source data. However,
my problem becomes when I try to drill. If I use one of the dummy
columns, it limits my drilling. I add two columns to the source table
(Item2, Salesrep2)which has about 18-20 columns. If I use both 'added'
columns on the row area, I can not do any further drilling. Is there a
way around this?

For example - I have Item, Item2, description,
Customer,Salesrep,salesrep2
being Item2 and Salesrep2 the added columns.

I can drop in the row area
Salesrep2, Item2
but not
Salesrep2, Item2, Description


If I move Salesrep2 to the Page area, then I can view
item2, Description

Your suggestions are appreciated? The problem does not happen when I
use the original columns from the Pivot Table.

Ana
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

formulas in pivot tables 2
EXCEL 2
Like a pivot table 7
Filter pivot table results without filtering in SQL query 1
Chapters??? 6
Macro Debug on Pivot Table 5
Age of Empires 4 5
Run time error 91 4

Back
Top