#DIV/0!

R

Richard

=SUM(A1,B1,C1)/COUNT(A1,B1,C1)How would you keep this error #DIV/0! from
showing up when nothing is in a cell. Thanks in advance!
 
M

Max

One of these would be options:
=IF(COUNT(A1:C1)=0,"",SUM(A1:C1)/COUNT(A1:C1))
=IF(COUNT(A1:C1)=0,"",AVERAGE(A1:C1))
 
M

Mike H

Hi,

Why are you making averages complicated, use this

=IF(ISERROR(AVERAGE(A1:C1)),"",AVERAGE(A1:C1))


Mike
 
T

T. Valko

P.S.

If there might be 3 0s in the range you'll still get the error.

Or, if there might be a situation like this you'll still get the error:

A1 = 10
B1 = -10
C1 = 0

For a generic "catch-all" see Mike's suggestion.
 
D

Dave Peterson

I don't think you really meant this warning.

T. Valko said:
P.S.

If there might be 3 0s in the range you'll still get the error.

Or, if there might be a situation like this you'll still get the error:

A1 = 10
B1 = -10
C1 = 0

For a generic "catch-all" see Mike's suggestion.
 
T

T. Valko

I don't think you really meant this warning.

You are correct. I didn't mean that at all! <g>

Time for a break.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top