#Error, Nz, Div!/0 and other situations

G

Greg Green

Following on yesterday's post and answers about the Nz function, I have a
similar problem.

When all fields have data, this returns no result:
=([D18]*[D27])/(Nz([A18]-[B18]-[C18]),1)

This returns a result if denominator > 0:
=([D18]*[D27])/(Nz([A18]-[B18]-[C18]))

Even with:
=([D18]*[D27])/(Nz([A18]-[B18]-[C18]),1)
The denomiator can be zero, since Nz converts Null to zero but leaves zero
alone.

I tried the IIF function, but it seems to prefer text
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top