Pivot table layout

I have an excel spreadsheet with 950 patients each of which can have up to have procedures on one date.  Some of them have had more than one admission.  The column headings for example are Patient ID, Procedure Date, Procedure 1, Procedure 2, Procedure 3 etc. up to procedure 8. I need to count the average procedures for each admission.  What is the best way to set this out on a pivot table please?
Gwynneth TaylorAsked:
Who is Participating?
 
Roy CoxConnect With a Mentor Group Finance ManagerCommented:
Basically I have just created a simple Pivot using the IDs in the Rows column then  placed the Count of Procedures in the Values.

Now to show the average  you need to access the Value Field Settings dialog box, click anywhere in the column you want to change, then click on the Field Settings button in the Active Field group on the Analyze contextual tab OR double-click on the column heading. Then click on the Show Values as button to reveal a list of options. Choose "% of Grand Total" then format as per centagePT_ShowValuesAS.png
0
 
Roy CoxGroup Finance ManagerCommented:
Can you provide a small example workbook, obviously disguise any names etc
0
 
Gwynneth TaylorAuthor Commented:
Hi I have made a dummy file that shows each patient ID can have more than one admission.  I have done a CountA for each patient on my own sheet then done an average at the bottom which works but I would rather do it in pivot table format to show the average per session if possible.  I hope this dummy file is enough thanks.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
Roy CoxGroup Finance ManagerCommented:
I think that you forgot to  attach it.

Also, you can set a Field to calculate averages.
0
 
Gwynneth TaylorAuthor Commented:
Oops sorry I thought I had - I will try again
test.xlsx
0
 
Roy CoxGroup Finance ManagerCommented:
here's a suggestion
0
 
Roy CoxGroup Finance ManagerCommented:
Sorry just seen the example
0
 
Roy CoxGroup Finance ManagerCommented:
Is this what you expect

I'll post explanation
test--1-.xlsx
0
 
Gwynneth TaylorAuthor Commented:
Thank you if you could post your explanation please.
0
 
Gwynneth TaylorAuthor Commented:
Thank you for your help.
0
 
Roy CoxGroup Finance ManagerCommented:
Pleased to help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.