+ Reply to Thread
Results 1 to 4 of 4

Changing #DIV/0 to a value of 0

  1. #1
    Registered User
    Join Date
    10-29-2011
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    12

    Changing #DIV/0 to a value of 0

    I have 18 cells (F6 to W6) with either the value of Y, N or N/A. I have created a countif formula in cell X6 that should give a percentage of Y's divided by Y+N's. I have all N/As in this instance so basically I am diving 0 by 0. I get the value to #DIV/0. How do I change this to the value of zero???

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Changing #DIV/0 to a value of 0

    Hi trfarley05,

    See the attached file and let me know if this works. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    07-19-2011
    Location
    Riverside, Tasmania
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Changing #DIV/0 to a value of 0

    Use the Formula
    if A1 is the Cell containing the #Div/0

    =if(isError(A1),0,A1)

    Hope this helps.
    Last edited by jlhudson; 04-14-2012 at 02:27 AM.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Changing #DIV/0 to a value of 0

    Since you have version 2007 you can use:

    =IFERROR(your current formula,0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1