Thread: Divison by 0
View Single Post
  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Assume the div error is because B2 is empty in =A2/B2

Then you could use =IF(B2=0,NA(),A2/B2)

or

=IF(B2=0,"",A2/B2)

--
Regards,

Peo Sjoblom


"jacob" wrote in message
...
A lot of the data i deal with involves counting and dividing. A percentage
may be presented in the worksheet. Instead of #DIV/0!, I would like for
N/A,
not available, to appear in the cell. How do i create a formula of sorts
that
will display the average, for example, or N/A if there is division by 0.

This will help me a lot because i won't have to look over hundreds of
cells
to spot all the divison by zero errors and i don't have to worry about
recalculations not appearing because formulas have been deleted to put N/A
in
the cells

Thanks very much!