when dragging formula how do i avoid #DIV/0!

  • Thread starter Thread starter derwood
  • Start date Start date
D

derwood

When dragging a formula and a field has a nil value is there a way to
avoid the result showing as #DIV/0!. Can it just skip this or return a
0 value or leave blank.
 
Dividing by zero is undefined in math hence the error.
Use the If function to test for a zero divisor:
Suppose you have a value in Column A and another value in Column B and in
Column C you have the formula A5/B5.
If B5 is empty - has a value of zero - or has some formula that results in a
zero, then your formula in Column C will result in #DIV/0!
Solve it by replacing the formula in Column C with this:
=IF(B5=0,"",Ad/B5)
What this does is checks to see if it is OK to do the calculation before it
does it. And if it is NOT OK then it shows nothing - a blank - in the cell.
That is what the double Quotes "" does.
TTFN
JMMach
 

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 5
#div/0 error 2
getting rid of a #Div/0! error 2
Div 0 help 1
#DIV/0! Query 2
When dividing by 0 can i show a result of 0 instead of #DIV/0 7
how to hide #DIV/0! 6
Another DIV/0 Error 2

Back
Top