Anyone know how to get rid of #DIV/0 in a result?

nm


farmcock (BOB member since 2008-01-15)

Something like:-

=Sum(If(Isnull([Field]);0;[Field]))

Mak 1 :uk: (BOB member since 2005-01-06)

Or …

=If([Divisor]=0;0;[Numerator]/[Divisor])

That manner of kidney.


Damocles :uk: (BOB member since 2006-10-05)

Thanks guys, but i tried both and neither worked - still get #DIV/0


farmcock (BOB member since 2008-01-15)

You’ll have to give us more info :).

If you had nulls, mine would have worked, if you had 0s Damocles formulae would have worked, so…

What have you got in the way of data?

What exactly you are tring to do and any formulae used…


Mak 1 :uk: (BOB member since 2005-01-06)

I’m using:

Formula:

[Closed Files] / ([Total New Files]+[Assigned Files]) = ‘X’

Actual Data:

1 / 0 = ‘X’

Result:

#DIV/0 = ‘X’


farmcock (BOB member since 2008-01-15)

I had the Numerator & Divisor backwards when I attempted the recommended correction - it works now.

Thanks to you both!


farmcock (BOB member since 2008-01-15)

Perhaps I should have used the word ‘Denominator’.


Damocles :uk: (BOB member since 2006-10-05)

You could have used IsError() function too.


Jansi :india: (BOB member since 2008-05-12)