How do I get data from many existing pivot tables

slhappyls

New Member
Joined
Sep 17, 2006
Messages
43
Hi all,

How do I get data from many existing pivot tables and combine them to make a new dynamic table?

many thanks.
 
very useful

thanks a lot. But I still have problem, because I have a field called gender with "Male" & "Female" values. Now want want to calculate the sex rate. I cant use calculated filed with countif function, so I use calculated item, but it will show in very data row. I just want it show in one row called gender rate. And I have to output all the statistics in specific format. How can I deal with
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
very useful

thanks a lot. But I still have problem, because I have a field called gender with "Male" & "Female" values. Now want want to calculate the sex rate. I cant use calculated filed with countif function, so I use calculated item, but it will show in very data row. I just want it show in one row called gender rate. And I have to output all the statistics in specific format. How can I deal with
 
Upvote 0
thanks a lot. But I still have problem, because I have a field called gender with "Male" & "Female" values. Now I want to calculate the sex rate. I cant use calculated filed with countif function, it doesnt work correctly in calculated field, so I use calculated item, but it will show in every data row. I just want it show in one row called gender rate. And I have to output all the statistics in specific format. How can I deal with?
 
Upvote 0
Try playing around with the pivot table.

Add the gender field to the Row section and you will have the full breakdown by age and sex.

Now drag Age above the top left of the pivot table to the Page Field section. You will be left with the mean and variance by sex.

If you want to see the breakdown by just one age group, click the dropdown next to Age and select the age group in question. To see by all age groups again, select (All) from the list.

Another option is to leave Age alone and drag Sex above the data fields.
Then you will get the 2 data fields by sex: Female, then Male. And the totals at the bottom will have the full gender split.

Hope I haven't confused you but pivot tables are very flexible. Have a play.

Denis
 
Upvote 0
Depending on your data setup there should be no need for calculated items. Avoid them where possible, they slow down your pivot tables dramatically.

Some samples may help:
Data -- goes for 30 rows
A B C
1 Age Sex Value
2 15-25 F 66
3 36-45 M 52
4 15-25 M 46
5 26-35 F 50
6 >65 F 70
7 26-35 M 71
8 56-65 M 32
9 15-25 F 37
10 >65 F 31
11 15-25 F 53
12 15-25 M 47
13 26-35 M 31
14 46-55 M 25

Sheet1

[Table-It] version 06 by Erik Van Geit

First PT:
Book1
EFGH
3Data
4AgeSexAvg ValueVariance
5>65F54.33424.33
6M59.0032.00
7>65 Total56.20226.70
815-25F52.00211.00
9M50.00151.50
1015-25 Total50.75147.93
1126-35F50.00
12M52.40489.80
1326-35 Total52.00392.80
1436-45F63.00
15M52.00
1636-45 Total57.5060.50
1746-55F56.00
18M30.0050.00
1946-55 Total38.67250.33
2056-65M46.50481.00
2156-65 Total46.50481.00
22Grand Total50.57246.99
Sheet1


Second PT:
Book1
JKLMNOP
3SexData
4FMTotal Avg ValueTotal Variance
5AgeAvg ValueVarianceAvg ValueVariance
6>6554.33424.3359.0032.0056.20226.70
715-2552.00211.0050.00151.5050.75147.93
826-3550.0052.40489.8052.00392.80
936-4563.0052.0057.5060.50
1046-5556.0030.0050.0038.67250.33
1156-6546.50481.0046.50481.00
12Grand Total54.22172.9448.84283.8150.57246.99
Sheet1


See if this helps

Denis
 
Upvote 0
Sorry I ve tried what u said but it can not meet my requirement. Can you tell me how to use getpivotdata to get the fields in page area. then I can select page filter at the same time. Just using newly developed dynamic table and forget my old pivot tables?
 
Upvote 0
It's hard to see what you need without some idea of the fields you already have. Even without displaying data:
1. What columns are there in your table?
2. What do you need to see?

I feel like I'm operating blind at the moment. All I know is what doesn't work for you. I don't know how to get what does work, without a bit more info.

Denis
 
Upvote 0
the following table is what I want:

table.bmp
 
Upvote 0

Forum statistics

Threads
1,215,723
Messages
6,126,470
Members
449,315
Latest member
misterzim

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top