DSUM returns #VALUE!

P

Peter C

=DSUM(DIVOH,$CX$1,$DG$2:$DG$20)

I have the above DSUM that refers to a "DIVOH" workbook, and returns #VALUE!
instead of a numerical 0 if the search is unsuccesful. Note that it returns
numerical results on successful searches.

Q: How do I get this to return a numerical nil for searches that cannot find
what they are looking for, instead of the #VALUE that is currently being
returned?

Thanks for any assistance.

Peter C
 
P

Peter C

No worries, found the answer to my question:
=IF(ISERROR(DSUM(DIVOH,$CX$1,$DG$2:$DG$20)),0)
 

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