Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Geoff C
 
Posts: n/a
Default Pivot Table - Running Total Annualised

Just discovered the "Group" feature in Pivot tables, as applied to dates, and
it's brought me tantalisingly close to what I want.

I have a list that comprises 4 years worth of sales, each row being the date
a sale was made, and the amount of the sale. What I wanted was an Annualised
total for each month (i.e. all sales in the last 12 calendar months). I've
found "Running Total", but if I group the date by year and month, the running
total resets to 0 every time the year changes. If I just group by month, then
it combines all the years, producing a useless conglomeration of figures.

I've also found a trendline that can be applied to a Pivot Chart (where I'm
just recording totals per month), that averages over 12 periods. This gives
me approximately the shape of the line I want, but figures that are average
sales - not total.

Is there any way to adapt either of these methods to produce the effect I
want? I know there are plenty of other ways I could structure the data, but I
want to apply the technique to different lists of sales that will be supplied
from various sources, and want something that can be put straight on top of
other people's data without complicated reformatting.

Any suggestions gratefully received.
Geoff.


  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Geoff,

If I just group by month, then
it combines all the years, producing a useless conglomeration of figures.


You can manually set the beginning and end dates of the grouping: the only
drawback is that you will need to manually sort to put Jan (of this year)
after Dec (of last year).

HTH,
Bernie
MS Excel MVP


"Geoff C" wrote in message
...
Just discovered the "Group" feature in Pivot tables, as applied to dates,

and
it's brought me tantalisingly close to what I want.

I have a list that comprises 4 years worth of sales, each row being the

date
a sale was made, and the amount of the sale. What I wanted was an

Annualised
total for each month (i.e. all sales in the last 12 calendar months).

I've
found "Running Total", but if I group the date by year and month, the

running
total resets to 0 every time the year changes. If I just group by month,

then
it combines all the years, producing a useless conglomeration of figures.

I've also found a trendline that can be applied to a Pivot Chart (where

I'm
just recording totals per month), that averages over 12 periods. This

gives
me approximately the shape of the line I want, but figures that are

average
sales - not total.

Is there any way to adapt either of these methods to produce the effect I
want? I know there are plenty of other ways I could structure the data,

but I
want to apply the technique to different lists of sales that will be

supplied
from various sources, and want something that can be put straight on top

of
other people's data without complicated reformatting.

Any suggestions gratefully received.
Geoff.




  #3   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

In the source data, add a field that calculates the first of the month
for each sale. Name the field, e.g. YearMonth, and use the following
formula in the data rows:

=DATE(YEAR(C2),MONTH(C2),1)

where the date is in column C.

Add that field to the pivot table, and use it as the base field for the
running total

Geoff C wrote:
Just discovered the "Group" feature in Pivot tables, as applied to dates, and
it's brought me tantalisingly close to what I want.

I have a list that comprises 4 years worth of sales, each row being the date
a sale was made, and the amount of the sale. What I wanted was an Annualised
total for each month (i.e. all sales in the last 12 calendar months). I've
found "Running Total", but if I group the date by year and month, the running
total resets to 0 every time the year changes. If I just group by month, then
it combines all the years, producing a useless conglomeration of figures.

I've also found a trendline that can be applied to a Pivot Chart (where I'm
just recording totals per month), that averages over 12 periods. This gives
me approximately the shape of the line I want, but figures that are average
sales - not total.

Is there any way to adapt either of these methods to produce the effect I
want? I know there are plenty of other ways I could structure the data, but I
want to apply the technique to different lists of sales that will be supplied
from various sources, and want something that can be put straight on top of
other people's data without complicated reformatting.

Any suggestions gratefully received.
Geoff.




--
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
Sub Total In Pivot Table Adam Excel Discussion (Misc queries) 1 November 22nd 05 05:36 PM
Using a Pivot Table Calculated Field to get a Unique Count Mike Struckman Excel Worksheet Functions 1 November 22nd 05 05:32 PM
pivot table YingRui Oliviero Excel Discussion (Misc queries) 1 April 12th 05 12:57 PM
Pivot Table Problems Rachel Gonsior Excel Discussion (Misc queries) 3 March 21st 05 07:24 PM
Pivot table (Running Averages) cs02000 Excel Worksheet Functions 0 March 6th 05 10:11 PM


All times are GMT +1. The time now is 05:21 AM.

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"