Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Stephen
 
Posts: n/a
Default Average Cells above 0

Hi Everone! I'm trying to average a group of cells, but only the cells over 0.
I tried this - =average(if(i2515:i5043)0,i2515:i5043)). I also entered it
as an array but it still didn't work. Please help!

--
Thanks!

Stephen
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=AVERAGE(IF(I2515:I50430,I2515:I5043))

Hope this helps!

In article ,
"Stephen" wrote:

Hi Everone! I'm trying to average a group of cells, but only the cells over 0.
I tried this - =average(if(i2515:i5043)0,i2515:i5043)). I also entered it
as an array but it still didn't work. Please help!

  #3   Report Post  
Ron P
 
Posts: n/a
Default

"Stephen" wrote in message
...
Hi Everone! I'm trying to average a group of cells, but only the cells
over 0.
I tried this - =average(if(i2515:i5043)0,i2515:i5043)). I also entered it
as an array but it still didn't work. Please help!

--
Thanks!

Stephen


Try this

=sumif(i2515:i5043,"0",i2515:i5043)/countif(i2515:i5043,"0")

  #4   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default

Hi,

Use the following formula,

=SUM(I2515:I5043)/COUNTIF(I2515:I5043,"0")

Regards,
B. R. Ramachandran

"Stephen" wrote:

Hi Everone! I'm trying to average a group of cells, but only the cells over 0.
I tried this - =average(if(i2515:i5043)0,i2515:i5043)). I also entered it
as an array but it still didn't work. Please help!

--
Thanks!

Stephen

  #5   Report Post  
Domenic
 
Posts: n/a
Default

The formula needs to be confirmed with CONTROL+SHIFT+ENTER.

In article ,
Domenic wrote:

Try...

=AVERAGE(IF(I2515:I50430,I2515:I5043))

Hope this helps!

In article ,
"Stephen" wrote:

Hi Everone! I'm trying to average a group of cells, but only the cells over
0.
I tried this - =average(if(i2515:i5043)0,i2515:i5043)). I also entered it
as an array but it still didn't work. Please help!



  #6   Report Post  
Stephen
 
Posts: n/a
Default

Thanks everone...it worked!
--
Thanks!

Stephen


"Domenic" wrote:

The formula needs to be confirmed with CONTROL+SHIFT+ENTER.

In article ,
Domenic wrote:

Try...

=AVERAGE(IF(I2515:I50430,I2515:I5043))

Hope this helps!

In article ,
"Stephen" wrote:

Hi Everone! I'm trying to average a group of cells, but only the cells over
0.
I tried this - =average(if(i2515:i5043)0,i2515:i5043)). I also entered it
as an array but it still didn't work. Please help!


  #7   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 23 Sep 2005 07:53:01 -0700, "B. R.Ramachandran"
wrote:

Hi,

Use the following formula,

=SUM(I2515:I5043)/COUNTIF(I2515:I5043,"0")

Regards,
B. R. Ramachandran

"Stephen" wrote:

Hi Everone! I'm trying to average a group of cells, but only the cells over 0.
I tried this - =average(if(i2515:i5043)0,i2515:i5043)). I also entered it
as an array but it still didn't work. Please help!

--
Thanks!

Stephen


Note that your formula does not meet the OP's request for "cells over 0".

Had he asked for "cells not equal to 0" then your formula would be appropriate.
However, your formula does not exclude those values "less than 0".


--ron
  #8   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default

Hi Ron,
Thanks for pointing out the error in the formula. I mistook that the OP
wanted to average nonzero values, and realized the error later after posting
my reply!
Regards,
B. R. Ramachandran

"Ron Rosenfeld" wrote:

On Fri, 23 Sep 2005 07:53:01 -0700, "B. R.Ramachandran"
wrote:

Hi,

Use the following formula,

=SUM(I2515:I5043)/COUNTIF(I2515:I5043,"0")

Regards,
B. R. Ramachandran

"Stephen" wrote:

Hi Everone! I'm trying to average a group of cells, but only the cells over 0.
I tried this - =average(if(i2515:i5043)0,i2515:i5043)). I also entered it
as an array but it still didn't work. Please help!

--
Thanks!

Stephen


Note that your formula does not meet the OP's request for "cells over 0".

Had he asked for "cells not equal to 0" then your formula would be appropriate.
However, your formula does not exclude those values "less than 0".


--ron

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
locking a formula to cells Ringo Excel Discussion (Misc queries) 1 July 13th 05 06:49 PM
Limit or Exclude cells in Average and Sum formula dagger Excel Worksheet Functions 3 July 7th 05 03:52 PM
Average form cells containing formulas? Edmdas Excel Worksheet Functions 7 March 7th 05 03:59 PM
How do i get an average that ignores blanks in the range of cells. ucastores Excel Worksheet Functions 7 November 11th 04 05:01 PM
copy group of cells to another group of cells using "IF" in third Chuckak Excel Worksheet Functions 2 November 10th 04 06:04 PM


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