# how do I average cells if a cell is at #div/0!

G

#### Guest

ok heres what I have.
in cell D6 I have formula of =AVERAGE(D710) which its at #div/0!
in cell D11 = AVERAGE(D1215) which its at 85
in cell D16 =AVERAGE(D17210) which its at 50

in cell D3 I just want the average of cell D6,D11,and D16
is this possible and how?

J

#### JW

ok heres what I have.
in cell D6 I have formula of =AVERAGE(D710) which its at #div/0!
in cell D11 = AVERAGE(D1215) which its at 85
in cell D16 =AVERAGE(D17210) which its at 50

in cell D3 I just want the average of cell D6,D11,and D16
is this possible and how?

Possible, yes. But why allow errors in your worksheet? Handle the
errors in your formulas and you won't have this problem.
=IF(ISERR0R(AVERAGE(D710),0,AVERAGE(D710))

D

#### David Biddulph

Change the D6 formula to =IF(ISERROR(AVERAGE(D710)),"",AVERAGE(D710))

But be careful taking the average of averages. Are you sure that you don't
need a weighted mean?

D

#### David Biddulph

I assume you mean
=IF(ISERROR(AVERAGE(D710)),0,AVERAGE(D710))
and not
=IF(ISERR0R(AVERAGE(D710),0,AVERAGE(D710))
(with the missing closing parenthesis, and with an O where you had a zero),
but do you really want to return a zero in the error case, or wouldn't
=IF(ISERROR(AVERAGE(D710)),"",AVERAGE(D710)) be better so that it
doesn't affect the next stage average in D3?

G

#### Guest

Thanks for the help, that worked fine but I think I have another problem. I
will post it when I figure what I need

J

#### JW

I assume you mean
=IF(ISERROR(AVERAGE(D710)),0,AVERAGE(D710))
and not
=IF(ISERR0R(AVERAGE(D710),0,AVERAGE(D710))
(with the missing closing parenthesis, and with an O where you had a zero),
but do you really want to return a zero in the error case, or wouldn't
=IF(ISERROR(AVERAGE(D710)),"",AVERAGE(D710)) be better so that it
doesn't affect the next stage average in D3?

Yes, left a parenthesis out. Typo on my part. As for the average
portion, could be either way. In my line of work, those zeros need to
be included in the grand average or I'd be reporting false data and
get kicked to the curb!