Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Need a formula to average every other value in a column.

I have columns with 100+ values. I need averages of the odd numbered rows
and then averages of the even numbered rows. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Need a formula to average every other value in a column.

=AVERAGE(IF(MOD(A1:A100,2),A1:A100,"")) for the odd rows
=AVERAGE(IF(MOD(A1:A100,2),"",A1:A100)) for the even rows

In each case, enter as an array formula, with Control Shift Enter.
--
David Biddulph

"Coach J" <Coach wrote in message
...
I have columns with 100+ values. I need averages of the odd numbered rows
and then averages of the even numbered rows. Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Need a formula to average every other value in a column.

for the even rows:

=AVERAGE(IF(MOD(A1:A100,2)=0,A1:A100)) as an array formula

for the odd rows:

=AVERAGE(IF(MOD(A1:A100,2)=1,A1:A100)) as an array formula
--
Gary''s Student - gsnu200775


"Coach J" wrote:

I have columns with 100+ values. I need averages of the odd numbered rows
and then averages of the even numbered rows. Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Need a formula to average every other value in a column.

I'd use:

Odd Rows:
=AVERAGE(IF((ISNUMBER(A1:A100)*MOD(ROW(A1:A100),2) )=1,A1:A100))

Even Rows:
=AVERAGE(IF((ISNUMBER(A1:A100)*MOD(ROW(A1:A100),2) )=0,A1:A100))

Both array entered.

Coach J wrote:

I have columns with 100+ values. I need averages of the odd numbered rows
and then averages of the even numbered rows. Any ideas?


--

Dave Peterson
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
Formula for average recorded blood pressure readings in 1 column . hjvn1302 Excel Worksheet Functions 6 May 16th 23 07:45 PM
Formula for average of a top 12 numbers in a column of 24 total nu Sean Excel Discussion (Misc queries) 2 August 17th 07 06:48 PM
Formula to take average from column range matching another dmasch Excel Discussion (Misc queries) 3 October 24th 06 02:27 PM
moving the formula "average" over one column in a macro drumstu Excel Worksheet Functions 1 August 23rd 05 08:01 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


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