Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Formula in pivot table

Dear all,

Kind of new to pivot tables and hoping that someone out there is able to
help me ;-).

I have a pivot table that generates in colom A country names and in row 2
weeknumbers. The weeks are grouped to quarters evry time I update the table.

To avoid grouping and ungrouping, I am looking for a formula that gives me
the total per quarter per country starting in cell B19.

Thanking you in advance for your kind help.
Eucalypta
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Formula in pivot table

Hi Eucalypta,

If the data is a date, Excel can automatically group into calendar quarters
in a Pivot Table.

To convert a week number to a date, if week number is in cell A2 then
=DATE(2008,1,A2*7-2) will give a date.

So, my suggestion is to add a column to the data for the pivot table, call
it 'weekEnded' and then use that column as a row field. Then group that
field. Quarter grouping will be an automatic option, so there is no need to
regroup when the pivot table is recalculated.

For more information, see my pivot table tutorial at
http://www.edferrero.com/ExcelTutori...9/Default.aspx

Ed Ferrero
www.edferrero.com

Dear all,

Kind of new to pivot tables and hoping that someone out there is able to
help me ;-).

I have a pivot table that generates in colom A country names and in row 2
weeknumbers. The weeks are grouped to quarters evry time I update the
table.

To avoid grouping and ungrouping, I am looking for a formula that gives me
the total per quarter per country starting in cell B19.

Thanking you in advance for your kind help.
Eucalypta


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Formula in pivot table

Hi Ed,

Thank you for your reply.

I have made the insertion you suggested and that works. What I cannot find
is where I tell Excel I want it sorted by quarter. Btw I am working with
Excel 2003.

Kindly advise.

Thanks in advance.
Eucalypta



"Ed Ferrero" wrote:

Hi Eucalypta,

If the data is a date, Excel can automatically group into calendar quarters
in a Pivot Table.

To convert a week number to a date, if week number is in cell A2 then
=DATE(2008,1,A2*7-2) will give a date.

So, my suggestion is to add a column to the data for the pivot table, call
it 'weekEnded' and then use that column as a row field. Then group that
field. Quarter grouping will be an automatic option, so there is no need to
regroup when the pivot table is recalculated.

For more information, see my pivot table tutorial at
http://www.edferrero.com/ExcelTutori...9/Default.aspx

Ed Ferrero
www.edferrero.com

Dear all,

Kind of new to pivot tables and hoping that someone out there is able to
help me ;-).

I have a pivot table that generates in colom A country names and in row 2
weeknumbers. The weeks are grouped to quarters evry time I update the
table.

To avoid grouping and ungrouping, I am looking for a formula that gives me
the total per quarter per country starting in cell B19.

Thanking you in advance for your kind help.
Eucalypta



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Formula in pivot table

Hi Eucalypta,

You can drag-and-drop quarters to whatever order you want.

Otherwise, remove all row fields except the weekEnded date, then sort by
date, then add row fields to the pivot table. The pivot table should remain
sorted by date. Note that whenever grouping dates, I usually add both year
and quarter (or month) to the row fields to avoid confusion.

Ed Ferrero
www.edferrero.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Formula in pivot table

Hi Ed,

Thanks for your reply.

The insertion of extra rows is what I want to avoid. If that is the
solution, I can keep the situation as it is, i.e. group and ungroup.

Preferably I like a formula like lookup or something. I think that I will
than only have to make the formula once for every quarter and not have to
bother anymore for the rest of the year.

Kindly advise.

Kind regards,
Eucalypta

"Ed Ferrero" wrote:

Hi Eucalypta,

You can drag-and-drop quarters to whatever order you want.

Otherwise, remove all row fields except the weekEnded date, then sort by
date, then add row fields to the pivot table. The pivot table should remain
sorted by date. Note that whenever grouping dates, I usually add both year
and quarter (or month) to the row fields to avoid confusion.

Ed Ferrero
www.edferrero.com




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
Pivot Table Formula PFLY Excel Discussion (Misc queries) 2 January 27th 09 06:33 PM
Pivot table vs formula sk8gfast Excel Programming 1 May 27th 08 07:38 PM
Formula in Pivot Table Tuzzolino Excel Programming 0 March 15th 06 08:18 PM
Pivot table formula [email protected] Excel Worksheet Functions 6 February 20th 06 10:27 PM
Pivot Table Formula GatorGirl Excel Discussion (Misc queries) 0 January 5th 06 07:26 PM


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