#1   Report Post  
Posted to microsoft.public.excel.misc
Mike
 
Posts: n/a
Default pivot table help

I am working on a pivot table and trying to recreate something I did last
month. I am having two basic problems. Any help is appreciated!

I want to group by month to list the average and the maximum. The data is
llike the following:
Date Val
12/29/2006 1
12/30/2006 2
12/31/2006 3
1/1/2006 5
1/2/2006 7
1/3/2006 9

What I want the pivot table to calculate is the following:
Data
Month-Year Max of Val Average of Val
Dec 2005 3 2
Jan 2006 9 7

Does anyone have any ideas? I was able to do the following last month, but I
do not know how I got (1) the year as a field and (2) grouping by month.
Data
Year Month Max of Val Average of Val
2005 Dec 3 2
2006 2006 9 7

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Barb Reinhardt
 
Posts: n/a
Default pivot table help

1) Add a column for month and year using this formula
=DATE(YEAR(A2),MONTH(A2),1)
2) Format this column as Month and Year
3) Select all of the cells of interest for your pivot table (including
headers)
4) Data|Pivot Table and Pivot Chart Report|
5) Select NEXT and FINISH
6) Put your month and year in DROP ROW FIELDS HERE
7) Drop VAL in the DATA ITEMS field twice.
8) Right click on Sum of Val to FIELD Settings
9) Change this to MAX
10) Right click on Sum of Val2 to FIELD Settings
11) Change this to Average
12) CLICK on the "DATA" pulldown and move it to the TOTAL field.

"Mike" wrote in message
...
I am working on a pivot table and trying to recreate something I did last
month. I am having two basic problems. Any help is appreciated!

I want to group by month to list the average and the maximum. The data is
llike the following:
Date Val
12/29/2006 1
12/30/2006 2
12/31/2006 3
1/1/2006 5
1/2/2006 7
1/3/2006 9

What I want the pivot table to calculate is the following:
Data
Month-Year Max of Val Average of Val
Dec 2005 3 2
Jan 2006 9 7

Does anyone have any ideas? I was able to do the following last month, but
I
do not know how I got (1) the year as a field and (2) grouping by month.
Data
Year Month Max of Val Average of Val
2005 Dec 3 2
2006 2006 9 7

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default pivot table help

In the pivot table, put the Date field in the Row area
Right-click on the Date field button
Choose Group and Show Detail Group
From the Group by list, select Months and Years
Click OK

Mike wrote:
I am working on a pivot table and trying to recreate something I did last
month. I am having two basic problems. Any help is appreciated!

I want to group by month to list the average and the maximum. The data is
llike the following:
Date Val
12/29/2006 1
12/30/2006 2
12/31/2006 3
1/1/2006 5
1/2/2006 7
1/3/2006 9

What I want the pivot table to calculate is the following:
Data
Month-Year Max of Val Average of Val
Dec 2005 3 2
Jan 2006 9 7

Does anyone have any ideas? I was able to do the following last month, but I
do not know how I got (1) the year as a field and (2) grouping by month.
Data
Year Month Max of Val Average of Val
2005 Dec 3 2
2006 2006 9 7

Thanks!



--
Debra Dalgleish
Excel FAQ, Tips & Book List
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
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
pivot table created from another pivot table Kreed Excel Worksheet Functions 6 October 26th 05 04:16 PM
Change Data In Pivot Table John Calder New Users to Excel 1 July 7th 05 10:41 PM
Pivot table, dynamic data formula Excel GuRu Excel Discussion (Misc queries) 3 May 3rd 05 10:45 PM
Pivot Table Problems Rachel Gonsior Excel Discussion (Misc queries) 3 March 21st 05 07:24 PM


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