+ Reply to Thread
Results 1 to 5 of 5

Losing the #DIV/0!

  1. #1
    Forum Contributor
    Join Date
    11-27-2005
    Location
    UK
    Posts
    102

    Losing the #DIV/0!

    Hi,

    I'm using this formula -

    =COUNTIF(Registers!E57:GB57,"ü")/COUNTA(Registers!E57:GB57)*100

    Is there a way of developing it so that if there is no data to be calculated or if the answer is 0 then the cell is left blank. At the moment it displays #DIV/0!

    Cheers,

    Mark.

  2. #2
    Barb Reinhardt
    Guest

    Re: Losing the #DIV/0!

    =if(COUNTA(Registers!E57:GB57)*100>0,COUNTIF(Registers!E57:GB57,"ü")/COUNTA(Registers!E57:GB57)*100,"")


    "mevetts" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > I'm using this formula -
    >
    > =COUNTIF(Registers!E57:GB57,"ü")/COUNTA(Registers!E57:GB57)*100
    >
    > Is there a way of developing it so that if there is no data to be
    > calculated or if the answer is 0 then the cell is left blank. At the
    > moment it displays #DIV/0!
    >
    > Cheers,
    >
    > Mark.
    >
    >
    > --
    > mevetts
    >
    >
    > ------------------------------------------------------------------------
    > mevetts's Profile:
    > http://www.excelforum.com/member.php...o&userid=29130
    > View this thread: http://www.excelforum.com/showthread...hreadid=499203
    >




  3. #3
    Ragdyer
    Guest

    Re: Losing the #DIV/0!

    Since you said that you *didn't* want to see a zero, as well as a #DIV/0
    error, try this:

    =IF(COUNTIF(E57:GB57,"u"),COUNTIF(E57:GB57,"u")/COUNTA(E57:GB57)*100,"")
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------

    "mevetts" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > I'm using this formula -
    >
    > =COUNTIF(Registers!E57:GB57,"ü")/COUNTA(Registers!E57:GB57)*100
    >
    > Is there a way of developing it so that if there is no data to be
    > calculated or if the answer is 0 then the cell is left blank. At the
    > moment it displays #DIV/0!
    >
    > Cheers,
    >
    > Mark.
    >
    >
    > --
    > mevetts
    >
    >
    > ------------------------------------------------------------------------
    > mevetts's Profile:

    http://www.excelforum.com/member.php...o&userid=29130
    > View this thread: http://www.excelforum.com/showthread...hreadid=499203
    >



  4. #4
    Forum Contributor
    Join Date
    11-27-2005
    Location
    UK
    Posts
    102
    Thanks people, much appreciated.

  5. #5
    Ragdyer
    Guest

    Re: Losing the #DIV/0!

    And we appreciate the feed-back.
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "mevetts" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks people, much appreciated.
    >
    >
    > --
    > mevetts
    >
    >
    > ------------------------------------------------------------------------
    > mevetts's Profile:

    http://www.excelforum.com/member.php...o&userid=29130
    > View this thread: http://www.excelforum.com/showthread...hreadid=499203
    >



+ 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