How to extract/filter certain values in Pivot table

HienFerber

New Member
Joined
Feb 24, 2018
Messages
6
Hi everyone! I have some questions with filtering in a pivot table:

Below is an extract of my very long table. Is there anyway I can pull out the bold lines into a separate list, or filtered for only these lines in the same pivot table with the percentage unchanged? I played around with "Showing values as.." but it does not help because basically Excel wants to calculate % based on the subtotal line, which means the "Count of Source in %" will become 100% if I filter for age group 0-4 only.

A separate question is I don't need the average age for each age group since it's obvious that the average age of 0-4 group is 2. How can I show only the average age at the subtotal line?

Many thanks for your help!


[TABLE="width: 574"]
<tbody>[TR]
[TD]Source of plants[/TD]
[TD="align: center"]Age[/TD]
[TD="align: center"]Count of Source[/TD]
[TD="align: center"]Count of Source in %[/TD]
[TD="align: center"]Average of Age[/TD]
[/TR]
[TR]
[TD]ABC Nursery[/TD]
[TD="align: center"]0-4[/TD]
[TD="align: center"]108[/TD]
[TD="align: center"]18%[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]5-9[/TD]
[TD="align: center"]141[/TD]
[TD="align: center"]23%[/TD]
[TD="align: center"]7[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]10-14[/TD]
[TD="align: center"]180[/TD]
[TD="align: center"]30%[/TD]
[TD="align: center"]12[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]15-19[/TD]
[TD="align: center"]73[/TD]
[TD="align: center"]12%[/TD]
[TD="align: center"]17[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]20-24[/TD]
[TD="align: center"]52[/TD]
[TD="align: center"]9%[/TD]
[TD="align: center"]22[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]25-29[/TD]
[TD="align: center"]31[/TD]
[TD="align: center"]5%[/TD]
[TD="align: center"]27[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]30-34[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]2%[/TD]
[TD="align: center"]32[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]35-39[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]1%[/TD]
[TD="align: center"]36[/TD]
[/TR]
[TR]
[TD]ABC Nursery Total[/TD]
[TD="align: center"][/TD]
[TD="align: center"]602[/TD]
[TD="align: center"]4%[/TD]
[TD="align: center"]12[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DEF Nursery[/TD]
[TD="align: center"]0-4[/TD]
[TD="align: center"]48[/TD]
[TD="align: center"]9%[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]5-9[/TD]
[TD="align: center"]65[/TD]
[TD="align: center"]12%[/TD]
[TD="align: center"]7[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]10-14[/TD]
[TD="align: center"]53[/TD]
[TD="align: center"]10%[/TD]
[TD="align: center"]12[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]15-19[/TD]
[TD="align: center"]39[/TD]
[TD="align: center"]7%[/TD]
[TD="align: center"]17[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]20-24[/TD]
[TD="align: center"]31[/TD]
[TD="align: center"]6%[/TD]
[TD="align: center"]22[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]25-29[/TD]
[TD="align: center"]24[/TD]
[TD="align: center"]4%[/TD]
[TD="align: center"]26[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]30-34[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]3%[/TD]
[TD="align: center"]32[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"]35-39[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]2%[/TD]
[TD="align: center"]37[/TD]
[/TR]
</tbody>[/TABLE]
.........
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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