Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Average of % in pivot table

I must be missing something, but I have been starring at this for a while and
cannot figure out what it is.

I have 5 columns in my table (and 100+ rows):
year
size category
total number of patients
number of patients screened
% of patients screened

I want to create a pivot table that shows the average % of patients screened
by year and size category. If I use average of "% of patients screened" in
the values section of the pivot table the results are off, because it takes
an average of the percentages, which is different from summing the number of
patients and the number screened in each subgroup and then calculating the
percentage.

Is there a way to have a calculation by subgroup in the pivot table:
(sum # patients screened)/(sum # patients)?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Average of % in pivot table

tc,

You need to add a calculated field - select a cell in the pivot table,
select the "PivotTable" dropdown on the pivot table commandbar, select
"Formulas", then "Calculated Field..." and create a formula like

='Patients screened' /Patients

by selecting the appropriate fields and using the insert button.

For more, see

http://office.microsoft.com/en-us/ex...994821033.aspx

HTH,
Bernie
MS Excel MVP


"tc2004" wrote in message
...
I must be missing something, but I have been starring at this for a while
and
cannot figure out what it is.

I have 5 columns in my table (and 100+ rows):
year
size category
total number of patients
number of patients screened
% of patients screened

I want to create a pivot table that shows the average % of patients
screened
by year and size category. If I use average of "% of patients screened"
in
the values section of the pivot table the results are off, because it
takes
an average of the percentages, which is different from summing the number
of
patients and the number screened in each subgroup and then calculating the
percentage.

Is there a way to have a calculation by subgroup in the pivot table:
(sum # patients screened)/(sum # patients)?

Thanks.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average in Pivot Table Jeff New Users to Excel 5 February 15th 09 05:03 PM
Average in a Pivot Table time conversion[_2_] Excel Discussion (Misc queries) 1 August 4th 08 08:10 PM
Pivot table average Graeme at Raptup Excel Discussion (Misc queries) 1 June 19th 08 06:51 PM
Weighted Average in Pivot table Mischa Excel Worksheet Functions 1 September 21st 06 03:23 PM
How to Get Sum of the Average in Pivot Table? Evanya Excel Discussion (Misc queries) 1 January 6th 05 09:07 PM


All times are GMT +1. The time now is 09:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"