LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Summarsing Variable Pivot Table Data

I have a pivot table giving the average length of stay of patients in
hospital for the previous month. This pivot table can be manipulated to show
different specialties and different locations.
I want to summarise this data on a seperate sheet, picking up the fields and
values when the different options are selected for location. So I would be
able to pick up average length of stay for say General Surgery patients at
two differnt hospital from the pivot table automatically (though these are
not displayed simultaneously on the pivot). Can I do this using VBA or a
macro and if so how do I go about it?

The values for say General Surgery at one location are not always in the
same cell position in the pivot as well (if I have a new months data imported
data or a new location selected on the pivot)

Example of Pivot Table below:

Month July 2006
Location Hospital1
Patient Type Inpatient
Method of Admission Elective

Main Speciality Speciality Consultant Average LOS No. of Episodes
General Surgery General Surgery Thomas, J 123.00 1
General Surgery Total 123.00 1
General Surgery Total 123.00 1
Orthopaedics Orthopaedics Phillips, R 45.00 2
Orthopaedics Total 45.00 2
Orthopaedics Total 45.00 2
OVERALL 71.00 9


Thanks very much,

--
Banjo Dave
 
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
Lookup data in a variable table & retrieve data from a pivot table Shawna Excel Worksheet Functions 3 October 10th 08 11:11 PM
Entering Variable in a Pivot Table flyer27 Excel Discussion (Misc queries) 0 March 13th 07 03:05 PM
Can't set pivot table object variable Jeff S[_2_] Excel Programming 0 February 13th 07 10:53 PM
Pivot Table variable range La Durande Excel Programming 1 October 18th 04 08:42 PM
Pivot Table - Object variable or with block variable not set? George Nicholson[_2_] Excel Programming 1 April 16th 04 09:12 PM


All times are GMT +1. The time now is 02:56 AM.

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

About Us

"It's about Microsoft Excel"