#1   Report Post  
Posted to microsoft.public.excel.programming
TD TD is offline
external usenet poster
 
Posts: 29
Default Pivot Table

Hi,

I have database consist of 5 columns. Employee Name, Patient Name, Agency,
Date Service, Date Entered. I have been updating log of employee visit to
patient for my payroll and billing.

Until now, I was copying data from main log to new worksheet falling in
particular date range and run Pivot Table for payroll and billing (I have to
provide detail breakdown of patient name and visit day).

Is there any way I can run pivot table for date range in column 5 (Date
Enter) without copying related data to new worksheet. Is there any way I can
have some kind of macro that pick up date value between defined in some cell
(lets say F1 & G1) in main worksheet.

I am fairly new to macro and don't know how to write code.

Thanks everyone for taking time to read and response.

TD

  #2   Report Post  
Posted to microsoft.public.excel.programming
TD TD is offline
external usenet poster
 
Posts: 29
Default Pivot Table

My existing Pivot Table format is

For 1st pivot table

Employee Name as Page field
Patient Name will appear in Row
Date Service will appear in Column
Data field will be count of Services

For 2nd pivot table

Agency Name as Page field
Patient Name will appear in Row
Date Service will appear in Column
Data field will be count of Services


"TD" wrote:

Hi,

I have database consist of 5 columns. Employee Name, Patient Name, Agency,
Date Service, Date Entered. I have been updating log of employee visit to
patient for my payroll and billing.

Until now, I was copying data from main log to new worksheet falling in
particular date range and run Pivot Table for payroll and billing (I have to
provide detail breakdown of patient name and visit day).

Is there any way I can run pivot table for date range in column 5 (Date
Enter) without copying related data to new worksheet. Is there any way I can
have some kind of macro that pick up date value between defined in some cell
(lets say F1 & G1) in main worksheet.

I am fairly new to macro and don't know how to write code.

Thanks everyone for taking time to read and response.

TD

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Pivot Table

To make it easy to filter for a date range, you could add a column to
the source data, e.g. ShowDate. In that column, use a calculation to
test if the date is in the range between the start and end dates that
you've entered in cells F1 and G1. Add the ShowDate field to the pivot
table's page area, and select TRUE from the dropdown list.

After you changes the date range, refresh the pivot table (manually or
programmatically, to show items in the new date range.

Also, if you base your pivot table on a dynamic range, it will
automatically include new rows as you add them to the source data. There
are instructions he

http://www.contextures.com/xlPivot01.html

TD wrote:
Hi,

I have database consist of 5 columns. Employee Name, Patient Name, Agency,
Date Service, Date Entered. I have been updating log of employee visit to
patient for my payroll and billing.

Until now, I was copying data from main log to new worksheet falling in
particular date range and run Pivot Table for payroll and billing (I have to
provide detail breakdown of patient name and visit day).

Is there any way I can run pivot table for date range in column 5 (Date
Enter) without copying related data to new worksheet. Is there any way I can
have some kind of macro that pick up date value between defined in some cell
(lets say F1 & G1) in main worksheet.

I am fairly new to macro and don't know how to write code.

Thanks everyone for taking time to read and response.

TD



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
how to create pivot table from existing pivot table in excel 2007 Udayraj Dhulekar Excel Discussion (Misc queries) 2 July 8th 13 08:22 PM
Copying values from pivot table to cells outside pivot table richzip Excel Discussion (Misc queries) 4 January 16th 08 11:03 PM
Filter lines with Pivot table and non pivot table columns Grover Charts and Charting in Excel 4 September 28th 07 03:16 AM
Filter lines with Pivot table and non Pivot table columns Grover Excel Discussion (Misc queries) 1 September 26th 07 12:48 AM
Help required with setting up a pivot table with the source on sheet1 to have the pivot table created on sheet called "report" Diana[_5_] Excel Programming 0 August 21st 03 10:19 PM


All times are GMT +1. The time now is 09:34 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"