Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jun 2005
    Posts
    388
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Getting rid of #DIV/0! (xp & 2003)

    Is there a way of getting rid of the #DIV/0! in a work-sheet. attached is a worksheet i am working on and would like to see a 0 instead.

    Thanks
    Attached Files Attached Files

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Getting rid of #DIV/0! (xp & 2003)

    You can use this formula in C16:
    <code>
    =IF(F16=0,0,G16/F16)
    </code>
    and fill down. More general, if F16 and G16 are the result of formulas that could return an error value, you could use
    <code>
    =IF(ISERROR(G16/F16),0,G16/F16)
    </code>
    This intercepts all possible errors and returns 0 instead.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Getting rid of #DIV/0! (xp & 2003)

    You could try:

    =IF(ISERROR(G16/F16),0,G16/F16)

    ISERROR refers to any error value (#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!).
    Jerry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •