View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ramudo ramudo is offline
external usenet poster
 
Posts: 2
Default How to use ERROR.TYPE in an IF function?

Thank you for your suggestion Dave Peterson.

"Dave Peterson" wrote:

I ususually weasel out and just check for an error:

=if(iserror(a1/b1),"",a1/b1)
or just check the denominator:
=if(b1=0,"",a1/b1)

But you could use a different formula to sum the column:

instead of:
=sum(a:a)

you can use:
=sumif(a:a,"<1e37")

1E37 is just a giant number (1 followed by 37 0's)



ramudo wrote:

I am getting error message #DIV/0! - How can I use ERROR.TYPE in an IF
function to bypass this error so that I can sum a column? OR, is there a
better way to achieve the same result? Thank you.


--

Dave Peterson