Adding a column to calculate an average in a pivot table

petehz

New Member
Joined
Mar 5, 2025
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I've created a pivot table of the first 2 columns in the table below and I'd like to add another column to calculate the average spans for each function based on the individual manager's spans witthin that fucntion. I know I can do this manually but is there a quick way to do it within the pivot table itself? Thanks

1741174270016.png
 
with Excel 365, you can try Groupby.
You can also review Pivotby

Consider the following


T202503a.xlsm
ABCDEFG
1Business GroupBusinessReports
2AdminAdmin Manager Aa-1Business GroupBusinessReportsAverage
3AdminAdmin Manager Aa-2AdminAdmin Manager B7
4AdminAdmin Manager Aa-3AdminAdmin Manager A3
5AdminAdmin Manager Bb-1Admin105
6AdminAdmin Manager Bb-2ITIT Manager C6
7AdminAdmin Manager Bb-3ITIT Manager D8
8AdminAdmin Manager Bb-4ITIT Manager E3
9AdminAdmin Manager Bb-5IT175.7
10AdminAdmin Manager Bb-6Grand Total27
11AdminAdmin Manager Bb-7
12ITIT Manager Cc-1
13ITIT Manager Cc-2
14ITIT Manager Cc-3
15ITIT Manager Cc-4
16ITIT Manager Cc-5
17ITIT Manager Cc-6
18ITIT Manager Dd-1
19ITIT Manager Dd-2
20ITIT Manager Dd-3
21ITIT Manager Dd-4
22ITIT Manager Dd-5
23ITIT Manager Dd-6
24ITIT Manager Dd-7
25ITIT Manager Dd-8
26ITIT Manager Ee-1
27ITIT Manager Ee-2
28ITIT Manager Ee-3
29
2a
Cell Formulas
RangeFormula
D2:F10D2=GROUPBY(A1:B28,C1:C28,COUNTA,3,2)
G5G5=F5/COUNTA(E3:E4)
G9G9=F9/COUNTA(E7:E9)
Dynamic array formulas.
 
Upvote 0
with Excel 365, you can try Groupby.
You can also review Pivotby

Consider the following


T202503a.xlsm
ABCDEFG
1Business GroupBusinessReports
2AdminAdmin Manager Aa-1Business GroupBusinessReportsAverage
3AdminAdmin Manager Aa-2AdminAdmin Manager B7
4AdminAdmin Manager Aa-3AdminAdmin Manager A3
5AdminAdmin Manager Bb-1Admin105
6AdminAdmin Manager Bb-2ITIT Manager C6
7AdminAdmin Manager Bb-3ITIT Manager D8
8AdminAdmin Manager Bb-4ITIT Manager E3
9AdminAdmin Manager Bb-5IT175.7
10AdminAdmin Manager Bb-6Grand Total27
11AdminAdmin Manager Bb-7
12ITIT Manager Cc-1
13ITIT Manager Cc-2
14ITIT Manager Cc-3
15ITIT Manager Cc-4
16ITIT Manager Cc-5
17ITIT Manager Cc-6
18ITIT Manager Dd-1
19ITIT Manager Dd-2
20ITIT Manager Dd-3
21ITIT Manager Dd-4
22ITIT Manager Dd-5
23ITIT Manager Dd-6
24ITIT Manager Dd-7
25ITIT Manager Dd-8
26ITIT Manager Ee-1
27ITIT Manager Ee-2
28ITIT Manager Ee-3
29
2a
Cell Formulas
RangeFormula
D2:F10D2=GROUPBY(A1:B28,C1:C28,COUNTA,3,2)
G5G5=F5/COUNTA(E3:E4)
G9G9=F9/COUNTA(E7:E9)
Dynamic array formulas.
Thanks Dave, much appreciated
 
Upvote 0

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