#div/0! how do i supress?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

On one of my worksheets I am creating a standard report that is doing quite a
number of calculations. On occassions my data in certain areas will be null.
For example cell H34 is returning the error because it has been looking for
type 5 priorities and there are none. I am a fussy person and want to
suppress the error message as it looks untidy. I have looked at a few threads
and cannot quite find one that sorts this out. Thanks up front to all you
patient people out there that take your time out to help others.
 
Hi, Vipa. It's ever so helpful to provide an edited formula if we have your
original formula, but here's a shot at it:

=if(iserror(yourformula),"",yourformula)
*******************
~Anne Troy

www.OfficeArticles.com
 
Hi vipa,

Could you please show the formula that returns the error to be surpressed?

Thx,
KL
 
Sorry KL and Anne, did not think in this instance it would be as critical.

cell h34 contains: =$H32/$H31

h32 =
=SUMPRODUCT((Sheet1!$C$2:$C$30000=5)*(Sheet1!$D$2:$D$30000="")*(MONTH(Sheet1!$I$2:$I$30000)=$F3)*(YEAR(Sheet1!$I$2:$I$30000)=$H3)*ISNUMBER(SEARCH({"*TECO*","*CLSD*"},Sheet1!$E$2:$E$30000)))

KL you might recognise it!

h31 = h9 which is the result of
=SUMPRODUCT(--(Sheet1!$C$2:$C$30000=5),--(Sheet1!$D$2:$D$30000=""),--(MONTH(Sheet1!$I$2:$I$30000)=F3),--(YEAR(Sheet1!$I$2:$I$30000)=H3))
 
Hi vipa,

Generally Anne's solution is the one to use. However, in this case it can be
slightly shorter:

=IF($H31,$H32/$H31,0)

Regards,
KL
 

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

Similar Threads

#DIV/0! error message 5
Macro to get rid of #DIV/0! 2
#DIV/0! ERROR 2
#DIV/0! 5
#DIV/0! 3
How to add a cell value to VLOOKUP? 5
Supressing a #VALUE! error returned? 3
Options for DIV#/0 6

Back
Top