#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
William Okumu
 
Posts: n/a
Default rolling average


I have a master sheet and three more sheet (opening stock,receipts &
closing stock) and within these 3 sheets there is product code ,
description price and the week numbers(i.e from wk 12 to wk 52) which
have quantities. I want to put a function in master sheet that will
calculate the sales rolling average based on week number eg
If i take 1 week average if i am in wk 15 it should give me cellvalue
of wk 14, and in 13 it gives me week 12 value.
If its 2 weeks average if iam in week 15 it should give an average of
week 14and 13, if am in week 14 it should give me the average for week
13 and 12.
If its 3 weeks and am in week 17, it should give me the average for
week 14,15,16 while in week 15 it should give me average for week
12,13,and 14

Can sb assist???


--
William Okumu
------------------------------------------------------------------------
William Okumu's Profile: http://www.excelforum.com/member.php...o&userid=33745
View this thread: http://www.excelforum.com/showthread...hreadid=535206

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default rolling average

Assuming you have week no. in column A, enter in column B:

3 weeks average:
=AVERAGE(OFFSET('Opening stock'!B$1,A1-4,0,3,1))

2 weeks average:
=AVERAGE(OFFSET('Opening stock'!$B$1,$A1-3,0,2,1))

That will return #REF for the n first weeks.

HTH
--
AP

For
"William Okumu"
a écrit dans le message de
news:William.Okumu.26o3fa_1145712001.9352@excelfor um-nospam.com...

I have a master sheet and three more sheet (opening stock,receipts &
closing stock) and within these 3 sheets there is product code ,
description price and the week numbers(i.e from wk 12 to wk 52) which
have quantities. I want to put a function in master sheet that will
calculate the sales rolling average based on week number eg
If i take 1 week average if i am in wk 15 it should give me cellvalue
of wk 14, and in 13 it gives me week 12 value.
If its 2 weeks average if iam in week 15 it should give an average of
week 14and 13, if am in week 14 it should give me the average for week
13 and 12.
If its 3 weeks and am in week 17, it should give me the average for
week 14,15,16 while in week 15 it should give me average for week
12,13,and 14

Can sb assist???


--
William Okumu
------------------------------------------------------------------------
William Okumu's Profile:

http://www.excelforum.com/member.php...o&userid=33745
View this thread: http://www.excelforum.com/showthread...hreadid=535206



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default rolling average

Here is an example of what you want on the closing stock average

=AVERAGE('Closing stock'!Q2:INDEX( 'Closing
stock'!A2:Q2,SUMPRODUCT(LARGE(COLUMN('Closing stock'!A1:Q1)*('Closing
stock'!A2:Q2<""),3))))

column Q is the last possible column that data will be ( so will probably be
in the are of AZ/BA/BB). Column A is not the first column real data will be
in, but an index column, so don't change if say you start week 1 in column
B, lkeave it at A. The ,3))) refers the the number of weeks being averaged.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"William Okumu"
wrote in message
news:William.Okumu.26o3fa_1145712001.9352@excelfor um-nospam.com...

I have a master sheet and three more sheet (opening stock,receipts &
closing stock) and within these 3 sheets there is product code ,
description price and the week numbers(i.e from wk 12 to wk 52) which
have quantities. I want to put a function in master sheet that will
calculate the sales rolling average based on week number eg
If i take 1 week average if i am in wk 15 it should give me cellvalue
of wk 14, and in 13 it gives me week 12 value.
If its 2 weeks average if iam in week 15 it should give an average of
week 14and 13, if am in week 14 it should give me the average for week
13 and 12.
If its 3 weeks and am in week 17, it should give me the average for
week 14,15,16 while in week 15 it should give me average for week
12,13,and 14

Can sb assist???


--
William Okumu
------------------------------------------------------------------------
William Okumu's Profile:

http://www.excelforum.com/member.php...o&userid=33745
View this thread: http://www.excelforum.com/showthread...hreadid=535206



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
William Okumu
 
Posts: n/a
Default rolling average


Thx Bob for the idea it worked but i also had to include other
constraints
THanks anyway


--
William Okumu
------------------------------------------------------------------------
William Okumu's Profile: http://www.excelforum.com/member.php...o&userid=33745
View this thread: http://www.excelforum.com/showthread...hreadid=535206

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
William Okumu
 
Posts: n/a
Default rolling average


Thx Bob for the idea it worked but i also had to include other
constraints
THanks anyway


--
William Okumu
------------------------------------------------------------------------
William Okumu's Profile: http://www.excelforum.com/member.php...o&userid=33745
View this thread: http://www.excelforum.com/showthread...hreadid=535206



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
William Okumu
 
Posts: n/a
Default rolling average


Thx Bob for the idea it worked but i also had to include other
constraints
THanks anyway


--
William Okumu
------------------------------------------------------------------------
William Okumu's Profile: http://www.excelforum.com/member.php...o&userid=33745
View this thread: http://www.excelforum.com/showthread...hreadid=535206

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
rolling 12 month average gevans Excel Worksheet Functions 5 February 21st 06 01:09 PM
Rolling Average SPenney Excel Worksheet Functions 5 February 10th 06 03:21 PM
Formula for calculating a rolling 12 month average in excel? Jeff Excel Discussion (Misc queries) 1 December 9th 05 09:11 PM
Rolling 3 mth Average dallin Excel Worksheet Functions 1 November 22nd 05 04:10 PM
Rolling Average Bearcats_85 Excel Discussion (Misc queries) 7 July 19th 05 03:19 PM


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