R Richard Jun 14, 2008 #1 =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!
=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 Jun 14, 2008 #2 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))
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 muddan madhu Jun 14, 2008 #4 try this =IF(ISERROR(SUM(A1:C1)/COUNT(A1:C1)),"",SUM(A1:C1)/COUNT(A1:C1))
M Mike H Jun 14, 2008 #5 Hi, Why are you making averages complicated, use this =IF(ISERROR(AVERAGE(A1:C1)),"",AVERAGE(A1:C1)) Mike
Hi, Why are you making averages complicated, use this =IF(ISERROR(AVERAGE(A1:C1)),"",AVERAGE(A1:C1)) Mike
T T. Valko Jun 14, 2008 #6 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.
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 Jun 14, 2008 #7 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. Click to expand...
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. Click to expand...
M Mike H Jun 14, 2008 #8 If there might be 3 0s in the range you'll still get the error. Click to expand... or perhaps not
T T. Valko Jun 14, 2008 #9 I don't think you really meant this warning. You are correct. I didn't mean that at all! <g> Time for a break.
I don't think you really meant this warning. You are correct. I didn't mean that at all! <g> Time for a break.