Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Average of previous values

I have colB containing monthly numeric values. And I want to create colC such
that it calculates the mean of previous 6 values of colB. So in the first row
of colC its obvious that it is zero, 2nd row 2, 3rd row 5, etc. The fact that
column B is so long. and I want an XL function that may be I can copy to all
the cells in colC to do the job for me or you're the expert. many thanks.

colA colB colC
1931jan 2 mean previous 6 values in colB
feb 3
mar 4
.... ..
1976dec 5

Speedy
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default Average of previous values

Hello speedy

Try this formula in C2

=AVERAGE(B$1:B1)

and copy to C6, then in C7

=AVERAGE(B1:B6)

copied down as far as you need

"Speedy" wrote:

I have colB containing monthly numeric values. And I want to create colC such
that it calculates the mean of previous 6 values of colB. So in the first row
of colC its obvious that it is zero, 2nd row 2, 3rd row 5, etc. The fact that
column B is so long. and I want an XL function that may be I can copy to all
the cells in colC to do the job for me or you're the expert. many thanks.

colA colB colC
1931jan 2 mean previous 6 values in colB
feb 3
mar 4
.... ..
1976dec 5

Speedy

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Average of previous values

Many thanks daddylonglegs for your great help.

Speedy

"daddylonglegs" wrote:

Hello speedy

Try this formula in C2

=AVERAGE(B$1:B1)

and copy to C6, then in C7

=AVERAGE(B1:B6)

copied down as far as you need

"Speedy" wrote:

I have colB containing monthly numeric values. And I want to create colC such
that it calculates the mean of previous 6 values of colB. So in the first row
of colC its obvious that it is zero, 2nd row 2, 3rd row 5, etc. The fact that
column B is so long. and I want an XL function that may be I can copy to all
the cells in colC to do the job for me or you're the expert. many thanks.

colA colB colC
1931jan 2 mean previous 6 values in colB
feb 3
mar 4
.... ..
1976dec 5

Speedy

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Average of previous values

What if I have the setup below of four cols:

colA colB colC colD
1931jfm 1931jan 1 mean of 1930(j,a,s,o,n,d)
1931amj 1931feb 2 mean of 1930(o,n,d),1931(j,f,m)
1931jas 1931mar 3 ....
1931ond 1931apr 4 .....

where j is jan, f is feb, m is march and so on
1930(j,a,s,o,n,d) is jul1930, aug1930,sep1930 and so on till dec1930
I want to calculate the mean of the "previous 6 months" which is to become
colD. The previous 6 months for cell D1 is 1930(j,a,s,o,n,d), cell D2
1930(o,n,d)1931(j,f,m), cell D3 1930(j,f,m,a,m,j) and so on. Because there
are so many columns and they are so long I thought I would seek help to make
my task easier.

Thanks alot

Speedy


"daddylonglegs" wrote:

Hello speedy

Try this formula in C2

=AVERAGE(B$1:B1)

and copy to C6, then in C7

=AVERAGE(B1:B6)

copied down as far as you need

"Speedy" wrote:

I have colB containing monthly numeric values. And I want to create colC such
that it calculates the mean of previous 6 values of colB. So in the first row
of colC its obvious that it is zero, 2nd row 2, 3rd row 5, etc. The fact that
column B is so long. and I want an XL function that may be I can copy to all
the cells in colC to do the job for me or you're the expert. many thanks.

colA colB colC
1931jan 2 mean previous 6 values in colB
feb 3
mar 4
.... ..
1976dec 5

Speedy

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Average of previous values

I keep messing things up D3 should be 1931(j,f,m,a,m,j) not 1930(j,f,m,a,m,j)
as I have below. Sorry about this, thanks,

Speedy

"Speedy" wrote:

What if I have the setup below of four cols:

colA colB colC colD
1931jfm 1931jan 1 mean of 1930(j,a,s,o,n,d)
1931amj 1931feb 2 mean of 1930(o,n,d),1931(j,f,m)
1931jas 1931mar 3 ....
1931ond 1931apr 4 .....

where j is jan, f is feb, m is march and so on
1930(j,a,s,o,n,d) is jul1930, aug1930,sep1930 and so on till dec1930
I want to calculate the mean of the "previous 6 months" which is to become
colD. The previous 6 months for cell D1 is 1930(j,a,s,o,n,d), cell D2
1930(o,n,d)1931(j,f,m), cell D3 1930(j,f,m,a,m,j) and so on. Because there
are so many columns and they are so long I thought I would seek help to make
my task easier.

Thanks alot

Speedy


"daddylonglegs" wrote:

Hello speedy

Try this formula in C2

=AVERAGE(B$1:B1)

and copy to C6, then in C7

=AVERAGE(B1:B6)

copied down as far as you need

"Speedy" wrote:

I have colB containing monthly numeric values. And I want to create colC such
that it calculates the mean of previous 6 values of colB. So in the first row
of colC its obvious that it is zero, 2nd row 2, 3rd row 5, etc. The fact that
column B is so long. and I want an XL function that may be I can copy to all
the cells in colC to do the job for me or you're the expert. many thanks.

colA colB colC
1931jan 2 mean previous 6 values in colB
feb 3
mar 4
.... ..
1976dec 5

Speedy

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
Average based on the previous row Gary Excel Worksheet Functions 5 February 6th 07 02:47 PM
Delete row containing all previous values. mohd21uk via OfficeKB.com New Users to Excel 1 May 10th 06 01:57 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Adding values from previous worksheets firecord Excel Worksheet Functions 1 June 27th 05 09:59 AM


All times are GMT +1. The time now is 11:14 PM.

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"