A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#DIV/0!



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2009, 04:51 PM posted to microsoft.public.excel.worksheet.functions
KelD
external usenet poster
 
Posts: 1
Default #DIV/0!

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,K 27)/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
  #2  
Old August 27th, 2009, 04:56 PM posted to microsoft.public.excel.worksheet.functions
Luke M
external usenet poster
 
Posts: 2,672
Default #DIV/0!

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,E2 7,G27,I27,K27)/C12)

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"KelD" wrote:

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,K 27)/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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.