View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris in BKK[_2_] Chris in BKK[_2_] is offline
external usenet poster
 
Posts: 2
Default display 0 instead of #DIV/0!

Thanks guys, I got it to work by using
=IF(M5="0",0,N5)+((B5+C5+E5+F5)*(200000/M5)), but I like the simpler one.

"T. Valko" wrote:

Try this:

=IF(M5=0,0,(B5+C5+E5+F5)*(200000/M5))

--
Biff
Microsoft Excel MVP


"Chris in BKK" <Chris in wrote in message
...
I've a data gathering and calculation summary sheet in a workbook, the
other
sheets provide raw imput data.

The formula =SUM((B5+C5+E5+F5)*(200000/M5)) in N5 displays error #DIV/0!
because M5 has a 0 valve (no problem if M5 is 1 or ). I believe IF will
correct and display 0, but forget string. I left reference docs in home
country.