+ Reply to Thread
Results 1 to 3 of 3

Tuff time with #DIV/0 Error: plz help

  1. #1
    Registered User
    Join Date
    03-06-2004
    Posts
    53

    Tuff time with #DIV/0 Error: plz help

    So this is what i am using:

    PHP Code: 
    =COUNTIF((E32:E39),"Yes")/E$30 
    Whenever the denominator is Zero, it shows this error. Can someone please help me show a zero, instead of this error?
    Last edited by bholabhala; 05-18-2011 at 09:59 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Tuff time with #DIV/0 Error: plz help

    With Excel 2003 or 2007:

    =IF(E$30=0,0,COUNTIF(E32:E39,"Yes")/E$30)

    With Excel 2007:

    =IFERROR(COUNTIF(E32:E39,"Yes")/E$30,0)


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tuff time with #DIV/0 Error: plz help

    What's in e2:e39 and what result are you expecting?

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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