Exclude value from columns in Pivot Table

yazanwael

New Member
Joined
Jan 16, 2021
Messages
1
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Mobile
  3. Web
Hi Everyone...

I've been trying to do something with pivot tables but I can't figure it out at all...
I want to add a calculation (value) in my pivot table outside the columns.
So for example, I want to make some calculation, and then show another calculation split by columns.
Not sure if my requirement is clear or not, but this simple example will make it easier to explain. I'd like to get the summary table (below) using Pivot Tables (if possible).

In this example, I would like to calculate the average age for the entire population (regardless of marital status), but calculate the average years of service based on marital status. Is it possible to do that in a pivot table ?

Excel Question.png



Thanks in advanced :)
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,694
Office Version
  1. 365
Platform
  1. Windows
It would not be possible in a single table, the only way that you would get it close would be to have 2 pivots side by side then hide the column with the row labels on the second one.

The downside to that would be potential for misaligned data if you attempt to sort or filter anything as they would be independent of each other.
 
Solution

Watch MrExcel Video

Forum statistics

Threads
1,130,310
Messages
5,641,450
Members
417,210
Latest member
rins

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
Top