+ Reply to Thread
Results 1 to 5 of 5

#DIV/0! Error - Help?

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    16

    #DIV/0! Error - Help?

    I have the following formula: =IF(COUNT(D11,H11)=2,(H11-D11)/D11,"") but I'm running into the problem where #DIV/0! error occurs when D11 is 0. How can I add to this formula so that if D11 is 0, the formula returns a blank cell?

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

    Re: #DIV/0! Error - Help?

    Hi ecrolley,

    You can update the formula as =iferror(<your formula>,""). Thanks.

    Regards,
    DILIPandey

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

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: #DIV/0! Error - Help?

    Figured it out!

    =IF(D11=0,"",IF(COUNT(D11,H11)=2,(H11-D11)/D11,""))

  4. #4
    Registered User
    Join Date
    11-07-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: #DIV/0! Error - Help?

    Thank you, DILIPandey!!

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

    Re: #DIV/0! Error - Help?

    You are welcome.. and it's good that you yourself have figured it out.. cheers to you

    Suggest you to mark this thread as [SOLVED].. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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