View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default display 0 instead of #DIV/0!

I'm fascinated that you say you got it to work. I'm assuming that you've
put your formula in N5, and if so you've created a circular reference, which
has its own problems. You are testing for a text value of zero in M5, not
for a number zero.
--
David Biddulph

"Chris in BKK" wrote in message
...
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))


"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.