PivtolTable_x2 Row label filters? -- XL2010, Win7

whitesabbathica9

New Member
Joined
Jun 3, 2008
Messages
47
Excel Pros,

I am trying to consolidate some data that I have divided into two PivotTables into just one, but I'm unsure how to go about doing it. Below is some random data for reference.

What I'm trying to do is get the average of Val2 using two different criteria:
1) Avg of Val2 in groups when Val1 <= 100
2) Avg of Val2 in groups when Val1 > 100

Please see data and example solutions below:

Table Data:
GROUP
ID
Val1
Val2
A11100.15
A21200.10
A31250.20
B11050.05
B2900.10
B3950.10
C11050.20
C2900.25
C3900.20

<tbody>
</tbody>

Desired PivotTable Solution:
GROUP
Avg<=100
Avg>100
A- -0.15
B0.100.05
C0.2250.20

<tbody>
</tbody>


I've only been able to do one average or the other, but not both in the same PT. Is there a way to accomplish this? I appreciate any assistance.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You could use Grouping to do that.

Organize your report like this:
Row Labels: GROUP (your field name- not to be confused with the Grouping Function).
Column Labels: Val1
Data Values: Val2 (summarized by Average)

To group the column labels, Right-click on any one of the Column Labels > Group... >
In the Grouping dialog:
Starting at: 100
Ending at: 100.01
By: 0.01

The data will be summarized and grouped as you wanted.
You can edit the labels to match yours.
(Avg<=100; Avg>100)
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,947
Members
449,480
Latest member
yesitisasport

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