A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Average every x cells



 
 
Thread Tools Display Modes
  #1  
Old April 9th, 2009, 10:56 PM posted to microsoft.public.excel.worksheet.functions
Wox
external usenet poster
 
Posts: 11
Default Average every x cells

I am trying to average data in a column from every 4 cells together. For
example, if data is in column A, then average A1:A4, A5:8,... Then put the
results in contiguous cells in column B. B1 would have average of A1:A4, B2
average of A5:A8, ...

Thanks in advance
  #2  
Old April 9th, 2009, 11:03 PM posted to microsoft.public.excel.worksheet.functions
Domenic[_2_]
external usenet poster
 
Posts: 265
Default Average every x cells

In article ,
Wox wrote:

I am trying to average data in a column from every 4 cells together. For
example, if data is in column A, then average A1:A4, A5:8,... Then put the
results in contiguous cells in column B. B1 would have average of A1:A4, B2
average of A5:A8, ...

Thanks in advance


Try...

B1, copied down:

=AVERAGE(INDEX($A$1:$A$100,ROWS(B$1:B1)*4-4+1):INDEX($A$1:$A$100,ROWS(B$1
:B1)*4))

--
Domenic
http://www.xl-central.com
  #3  
Old April 9th, 2009, 11:29 PM posted to microsoft.public.excel.worksheet.functions
Wox
external usenet poster
 
Posts: 11
Default Average every x cells

Thanks Domenic, this works great.

Thanks tons

"Domenic" wrote:

In article ,
Wox wrote:

I am trying to average data in a column from every 4 cells together. For
example, if data is in column A, then average A1:A4, A5:8,... Then put the
results in contiguous cells in column B. B1 would have average of A1:A4, B2
average of A5:A8, ...

Thanks in advance


Try...

B1, copied down:

=AVERAGE(INDEX($A$1:$A$100,ROWS(B$1:B1)*4-4+1):INDEX($A$1:$A$100,ROWS(B$1
:B1)*4))

--
Domenic
http://www.xl-central.com

  #4  
Old April 10th, 2009, 06:43 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Average every x cells

Here's another one. More compact but volatile (will recalculate any time a
calculation takes place).

Entered in B1 and copied down:

=AVERAGE(OFFSET(A$1,ROWS(B$1:B1)*4-4,,4))

--
Biff
Microsoft Excel MVP


"Wox" wrote in message
...
I am trying to average data in a column from every 4 cells together. For
example, if data is in column A, then average A1:A4, A5:8,... Then put the
results in contiguous cells in column B. B1 would have average of A1:A4,
B2
average of A5:A8, ...

Thanks in advance



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.