problem with an averaging formula

B

Bobbie

I'm trying to write a formula that will average each column A,B and C but if
there isn't any numbers in the column leave the total blank instead of having
the #DIV/0! show up. The formula I have used to get the totals is
=average(B3:B6). The values in the total row get used on another formula on a
different worksheet and the #DIV/0! messes up that formula. Thanks

A B C

33.3 0.0
66.7 50.0
-100.0 -66.7
75.0
Total 18.8 #DIV/0! -5.6
 
D

Dave Peterson

=if(count(b3:b6)=0,"",average(b3:b6))

(Check for some numbers in that range first.)
 

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