# DVD/0

  • Thread starter Thread starter Khalil Handal
  • Start date Start date
K

Khalil Handal

Is there a VBA code to check all the sheets in a workbook so as to give an
empty cell (nothing seen in the cell) instead of the error values like
#DVD/0 (division over zero).

Khalil
 
My formula is:
=IF(COUNT(AVERAGE(Marks!T15:V15))="","",AVERAGE(Marks!T15:V15))
The range T15:V15 has either numeric values or average from other cell in
the sheet.

Khalil
 
=IF(COUNT(AVERAGE(Marks!T15:V15))=0,"",AVERAGE(Marks!T15:V15))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Or just count the numbers in the original range:

=IF(COUNT(Marks!T15:V15)=0,"",AVERAGE(Marks!T15:V15))
 

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

Back
Top