Sum of Max values in a pivot table

MarielaCB

New Member
Joined
Jan 7, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am new to pivot tables, and not versed in SQL, looking for a straight forward method, preferably in a pivot table. I have data that shows different numbers for the same rooms in a specific building. I need to know the total (sum) of the maximum number of students in a particular room. See the attached file.

Main Table
BLDG_CODEROOM_CODEMAX_ENROLLEDACT_ENROLLEDAVAILABLE SEATS
AN3
213​
100​
25​
75​
AN3
213​
100​
63​
37​
AN3
319​
20​
5​
15​
AN3
319​
20​
5​
15​
AN3
319​
20​
7​
13​
AN3
319​
20​
5​
15​
ASA
216​
20​
4​
16​
ASA
312​
10​
3​
7​
ASA
312​
10​
4​
6​
ASA
312​
10​
3​
7​

PIVOT TABLE

Row LabelsMax of MAX_ENRMax of ACT_ENRMax of AVAIL
AN3<<NEED TO GET *THE SUM* OF THE MAX BELOW (120)>> *NOT THE MAX (100)*
213
100​
63​
75​
319
20​
7​
15​
ASA
216
20​
4​
16​
312
10​
4​
7​
Grand Total
100​
63​
75​

Thank you for any help you can provide
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,224,818
Messages
6,181,151
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