Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Pivot Table Group by Month Beforehand

If you have created a Pivot Table with individual dates as columns, you can right-click on the date field and choose group by month (or quarter, etc.). But it seems that you can only do that AFTER the Pivot Table has already been created. My problem is that I need to accomplish this BEFORE the Pivot Table is created

I have a database of about 5,000 records, all with individual dates for 2003. I want to create a Pivot Table grouped by month. However, because there are 365 days in a year, and because Excel only has 255 columns, I get a message telling me there is not enough room to create the Pivot Table. Consequently, I can't even get to the point where I can right-click on the date field to group by month because I can't create the Pivot Table to begin with

Is there some way of grouping by month (even if it's through VBA) prior to creating the Pivot Table so that it comes out already grouped by month

Many thanks
Paul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Pivot Table Group by Month Beforehand

I had a similiar problem. I couldn't get VBA to Ungroup
PivotFields. My solution was to create a "Month" field in
the database, then just use the field "Month" in your
field layout.

Not exactly the solution you wanted..I know, but I hope it
helps.

-Brad
-----Original Message-----
If you have created a Pivot Table with individual dates

as columns, you can right-click on the date field and
choose group by month (or quarter, etc.). But it seems
that you can only do that AFTER the Pivot Table has
already been created. My problem is that I need to
accomplish this BEFORE the Pivot Table is created.

I have a database of about 5,000 records, all with

individual dates for 2003. I want to create a Pivot Table
grouped by month. However, because there are 365 days in
a year, and because Excel only has 255 columns, I get a
message telling me there is not enough room to create the
Pivot Table. Consequently, I can't even get to the point
where I can right-click on the date field to group by
month because I can't create the Pivot Table to begin with.

Is there some way of grouping by month (even if it's

through VBA) prior to creating the Pivot Table so that it
comes out already grouped by month?

Many thanks,
Paul
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pivot Table Group by Month Beforehand

Why don't you group date on row field and then move to column?

Veerachai W.

"Paul Simon" wrote in message
...
If you have created a Pivot Table with individual dates as columns, you

can right-click on the date field and choose group by month (or quarter,
etc.). But it seems that you can only do that AFTER the Pivot Table has
already been created. My problem is that I need to accomplish this BEFORE
the Pivot Table is created.

I have a database of about 5,000 records, all with individual dates for

2003. I want to create a Pivot Table grouped by month. However, because
there are 365 days in a year, and because Excel only has 255 columns, I get
a message telling me there is not enough room to create the Pivot Table.
Consequently, I can't even get to the point where I can right-click on the
date field to group by month because I can't create the Pivot Table to begin
with.

Is there some way of grouping by month (even if it's through VBA) prior to

creating the Pivot Table so that it comes out already grouped by month?

Many thanks,
Paul



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Pivot Table Group by Month Beforehand

Brad
Simple yet excellent solution. Don't know why I didn't think of it myself. Works great

Veerachai
This is a perfect solution to my problem. Again, I don't know why I didn't thin
of such a simple solution myself. It works perfectly and is exactly what I was lookin
for. Now I can group on other periods (like Quarterly) as well

Thank you Brad and Veerachai for your great solutions and for taking the time t
help me out on this. I apperciate it very much

Pau

----- Veerachai W. wrote: ----

Why don't you group date on row field and then move to column

Veerachai W

"Paul Simon" wrote in messag
..
If you have created a Pivot Table with individual dates as columns, yo

can right-click on the date field and choose group by month (or quarter
etc.). But it seems that you can only do that AFTER the Pivot Table ha
already been created. My problem is that I need to accomplish this BEFOR
the Pivot Table is created
I have a database of about 5,000 records, all with individual dates fo

2003. I want to create a Pivot Table grouped by month. However, becaus
there are 365 days in a year, and because Excel only has 255 columns, I ge
a message telling me there is not enough room to create the Pivot Table
Consequently, I can't even get to the point where I can right-click on th
date field to group by month because I can't create the Pivot Table to begi
with
Is there some way of grouping by month (even if it's through VBA) prior t

creating the Pivot Table so that it comes out already grouped by month
Many thanks

Pau




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
Group by month in a Pivot table Charles Excel Discussion (Misc queries) 4 September 26th 17 09:16 PM
Group by Month in Pivot-table [email protected] Excel Discussion (Misc queries) 4 February 20th 08 05:48 PM
Pivot table - group dates per week or month digicat Excel Discussion (Misc queries) 1 January 8th 06 08:46 PM
Can't group pivot table items by month in Excel scott_ensley Excel Discussion (Misc queries) 1 February 1st 05 08:41 PM
Pivot Table - Group by Month - Show Items with no data Dan Reynolds Excel Discussion (Misc queries) 0 November 28th 04 01:01 AM


All times are GMT +1. The time now is 01:19 PM.

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"