View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
sidm via OfficeKB.com sidm via OfficeKB.com is offline
external usenet poster
 
Posts: 23
Default Divide by 0 Help

joey_boy wrote:
=(SUM(E98:F98)+D98/2)/(I98-G98)

Any suggestions on how I can rewrite this to return 0 if I get a Dicide by 0
Error in any of the calculations. I am a bit of a novice.


=if(iserr(SUM((E98:F98)+D98/2)/(I98-G98)),0,((SUM(E98:F98)+D98/2)/(I98-G98))

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/201005/1