if error

  • Thread starter Thread starter robert_woodie
  • Start date Start date
R

robert_woodie

i have a macro that reads from a list of data which is autoimaticall
generated, some times the error #DIV0! is produced
i want to write
if cell.value=this error then
set variable to zero

how do i do this
 
robert_woodie said:
*i have a macro that reads from a list of data which i
autoimatically generated, some times the error #DIV0! is produced
i want to write
if cell.value=this error then
set variable to zero

how do i do this? *

I use the formula below. If M36 is zero, the result is an error and i
subsequently sets the value of the cell equal to 0.


=IF(ISERR(AN36/M36)=TRUE,0,AN36/M36
 

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

IF statement 5
Error Installing "ADAPTEC EZCD 4.04" 1
#DIV0/! issues 2
I WANT TO HIDE THIS #DIV0! 9
Percentages 6
Select drop down menu option using libre-calc macro 0
Division by 0 1
Error 28 - Excel vba macro 0

Back
Top