Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Geo
 
Posts: n/a
Default EXcluding Zeros from the average in a row

HI
I am trying to average a row of numbers (F35:U35) that have numeric zeros in
some of the cells. However, I would like to exclude them, and the cells from
the calculation "=AVERAGE(F35:U35)". Is there a way to do that?

Thanks
--
Geo
  #2   Report Post  
Leo Heuser
 
Posts: n/a
Default

Hi Geo

This array formula will do the job:

=AVERAGE(IF(F35:U35<0,F35:U35))

To be entered with <Shift<Ctrl<Enter instead of <Enter,
also if edited later.

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Geo" skrev i en meddelelse
...
HI
I am trying to average a row of numbers (F35:U35) that have numeric zeros

in
some of the cells. However, I would like to exclude them, and the cells

from
the calculation "=AVERAGE(F35:U35)". Is there a way to do that?

Thanks
--
Geo



  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

In addition to Leo's array formula, you also have the
option of using:

=SUM(F35:U35)/COUNTIF(F35:U35,"<0")

so long as your range does not contain any empty cells or
non-numerical values.

HTH
Jason
Atlanta, GA

-----Original Message-----
HI
I am trying to average a row of numbers (F35:U35) that

have numeric zeros in
some of the cells. However, I would like to exclude them,

and the cells from
the calculation "=AVERAGE(F35:U35)". Is there a way to do

that?

Thanks
--
Geo
.

  #4   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Empty cells are not equal to zero.

=SUM(F35:U35)/(COUNTIF(F35:U35,"0")+COUNTIF(F35:U35,"<0"))

is more bullet proof.

Jerry

Jason Morin wrote:

In addition to Leo's array formula, you also have the
option of using:

=SUM(F35:U35)/COUNTIF(F35:U35,"<0")

so long as your range does not contain any empty cells or
non-numerical values.

HTH
Jason
Atlanta, GA


-----Original Message-----
HI
I am trying to average a row of numbers (F35:U35) that

have numeric zeros in

some of the cells. However, I would like to exclude them,

and the cells from

the calculation "=AVERAGE(F35:U35)". Is there a way to do

that?

Thanks
--
Geo


  #5   Report Post  
Jason Morin
 
Posts: n/a
Default

I know empty cells are not equal to zero. That's why I
stated this formula is limited to non-numerical values and
and no empty cells. Your formula is definitely more bullet
proof in that regard.

Jason

-----Original Message-----
Empty cells are not equal to zero.

=SUM(F35:U35)/(COUNTIF(F35:U35,"0")+COUNTIF

(F35:U35,"<0"))

is more bullet proof.

Jerry

Jason Morin wrote:

In addition to Leo's array formula, you also have the
option of using:

=SUM(F35:U35)/COUNTIF(F35:U35,"<0")

so long as your range does not contain any empty cells

or
non-numerical values.

HTH
Jason
Atlanta, GA


-----Original Message-----
HI
I am trying to average a row of numbers (F35:U35) that

have numeric zeros in

some of the cells. However, I would like to exclude

them,

and the cells from

the calculation "=AVERAGE(F35:U35)". Is there a way to

do

that?

Thanks
--
Geo


.

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
is there a way to hide zeros in a line graph L Young Charts and Charting in Excel 6 January 22nd 05 01:48 AM
Formula to average ignoring negatives? Steve Excel Discussion (Misc queries) 16 January 1st 05 12:57 PM
Average Macro Christopher Anderson Excel Discussion (Misc queries) 2 December 22nd 04 06:43 PM
How to show zeros (0) as "slashed" to eliminate confusion with "O. Randy Stanford Excel Discussion (Misc queries) 3 December 17th 04 12:22 AM
average on rows justamailman Excel Discussion (Misc queries) 5 December 13th 04 01:51 AM


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