PC Review


Reply
Thread Tools Rate Thread

Average of % in pivot table

 
 
tc2004
Guest
Posts: n/a
 
      25th Nov 2009
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 With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      25th Nov 2009
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" <(E-Mail Removed)> wrote in message
news:06AC64BA-B2FA-48BB-894D-(E-Mail Removed)...
>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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average in Pivot Table Jeff Microsoft Excel New Users 5 15th Feb 2009 05:03 PM
Average in a Pivot Table time conversion Microsoft Excel Misc 1 4th Aug 2008 08:10 PM
Pivot table average Graeme at Raptup Microsoft Excel Misc 1 19th Jun 2008 06:51 PM
Average in a Pivot Table mikelee101 Microsoft Excel Discussion 3 4th Jun 2008 03:44 PM
How to Get Sum of the Average in Pivot Table? =?Utf-8?B?RXZhbnlh?= Microsoft Excel Misc 1 6th Jan 2005 09:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:23 AM.