View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default Need help with a formula

I hope that you want (100+85+75)/3 rather than 100+85+75/3 ?

If G8=100, G16=85, G24 is blank, G36=75, the formula
=AVERAGE(G8, G16, G24, G36)
will give (100+85+75)/3, and you can avoid a #DIV/0! error by using
=IF(COUNT(G8, G16, G24, G36)=0,"",AVERAGE(G8, G16, G24, G36))

You say:
"I have been able to find a formula which does that AND uses values only
when they are greater than zero and does not display #DIV/0!. "
so it might have been handy if you told us what that formula is, and how
that fails to meet your requirement of:
"Take an average of those specific cells AND use only the ones where the
cell is 0".

Are you really trying to exclude values <=0, or merely trying to exclude
blank cells [or text strings such as "" which your other formulae may be
returning] (which the AVERAGE function does anyway)?
--
David Biddulph

"dbconn" wrote in message
...
I am looking for a formula that will compute an average of a number of non
contiguous cells such as G8, G16, G24, G36, etc. Each of these cells has
a
formula which computes an average of a range of cells. With the helpm of
this forum, I have been able to find a formula which does that AND uses
values only when they are greater than zero and does not display #DIV/0!.
But I cannot fin a fromula that will do the next step- Take an average of
those specific cells AND use only the ones where the cell is 0, Example
G8=100, G16=85, G24 is blank, G36=75, then this formula would calculate
the
average 100+85+75/3.

All help greatly appreciated
--
dbconn