#DIV/0!

K

KelD

I've read almost all of the threads. Now I'm REALLY confused.
I need to get an average using data that is put in by the user.
I'm adding a bunch of cells (not contigious) then dividing it by one number
which may or may not be 0.

I'm using this formula:
=SUM(E12,G12,I12,K12,M12,O12,Q12,C27,E27,G27,I27,K27)/C12
Where C12 is the divider. I have tried the i=IF(C12=0,0,XXXX) this is
where I get confused: the xxx's represent the confusion part. What do I put
in there???

Any other suggestions to achieve the same answer??

Thank you
 
L

Luke M

xxx = your formula

The logic is "If there's a problem, do this, otherwise, carry on as usual".

In your case, entire formula becomes:
=IF(C12=0,0,SUM(E12,G12,I12,K12,M12,O12,Q12,C27,E27,G27,I27,K27)/C12)
 

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