Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
derwood
 
Posts: n/a
Default when dragging formula how do i avoid #DIV/0!

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.

  #2   Report Post  
JMMach
 
Posts: n/a
Default when dragging formula how do i avoid #DIV/0!

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


"derwood" wrote in message
oups.com...
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.



  #3   Report Post  
JMMach
 
Posts: n/a
Default when dragging formula how do i avoid #DIV/0!

OPPS
My formula should have read: =IF(B5=0,"",A5/B5)
Sorry about that

TTFN
JMMach

"JMMach" wrote in message
...
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


"derwood" wrote in message
oups.com...
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.





  #4   Report Post  
Jim May
 
Posts: n/a
Default when dragging formula how do i avoid #DIV/0!

You can also test for an error by entering:

=IF(IsError(A5/B5),"",A5/B5)



"JMMach" wrote in message
...
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


"derwood" wrote in message
oups.com...
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.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula works in some cells, doesn't in other Wowbagger New Users to Excel 13 June 30th 05 03:21 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM


All times are GMT +1. The time now is 03:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"