+ Reply to Thread
Results 1 to 4 of 4

Excel - IF Formula and #DIV0!

  1. #1
    Newsgal
    Guest

    Excel - IF Formula and #DIV0!

    How can we get the formula below to drive the correct response when a zero is
    the divisor? Points earned are SUMMED at the bottom of the spreadsheet which
    corrupts when the Goal is zero creating a #DIV/0! message is in any of the
    cells in the SUM range. However, if we correct so #DIV/0! doesn't display,
    then a zero Goal and zero Actual will drive a 10 points earned result instead
    of zero points earned.

    Goal Actual Variance % Points Possible Points Earned
    0 0 =D16-C16 =D16/C16 10 =IF(F16>99.5%,10,0)

    Goal Actual Variance % Points Possible Points Earned
    $0.00 $0.00 $0 #DIV/0! 10 #DIV/0!

    Corrected to not display #DIV/0!:
    Goal Actual Variance % Points Possible Points Earned
    $0.00 $0.00 $0 10 10








    --
    News Gal

  2. #2
    Forum Contributor Kieran's Avatar
    Join Date
    10-02-2003
    Location
    Perth, Western Australia
    MS-Off Ver
    Office 2003
    Posts
    109
    Hi,

    Try

    0 0 =D16-C16 =if(c16<>0,D16/C16,0) 10 =IF(F16>99.5%,10,0)
    Kieran

  3. #3
    Biff
    Guest

    Re: Excel - IF Formula and #DIV0!

    Hi!

    >However, if we correct so #DIV/0! doesn't display


    How are you correcting? Are you using a formula that returns a formula
    blank("")?

    If that's the case then what's happening is that the formula blank is a zero
    length TEXT string and a TEXT value will ALWAYS evaluate to be greater than
    a numeric value. So:

    =IF(F16>99.5%,10,0)

    If F16 = "", then F16>99.5 = TRUE = 10

    Try this:

    =IF(AND(ISNUMBER(F16),F16>99.5%),10,0)

    Biff

    "Newsgal" <[email protected]> wrote in message
    news:[email protected]...
    > How can we get the formula below to drive the correct response when a zero
    > is
    > the divisor? Points earned are SUMMED at the bottom of the spreadsheet
    > which
    > corrupts when the Goal is zero creating a #DIV/0! message is in any of the
    > cells in the SUM range. However, if we correct so #DIV/0! doesn't display,
    > then a zero Goal and zero Actual will drive a 10 points earned result
    > instead
    > of zero points earned.
    >
    > Goal Actual Variance % Points Possible Points Earned
    > 0 0 =D16-C16 =D16/C16 10 =IF(F16>99.5%,10,0)
    >
    > Goal Actual Variance % Points Possible Points Earned
    > $0.00 $0.00 $0 #DIV/0! 10 #DIV/0!
    >
    > Corrected to not display #DIV/0!:
    > Goal Actual Variance % Points Possible Points Earned
    > $0.00 $0.00 $0 10 10
    >
    >
    >
    >
    >
    >
    >
    >
    > --
    > News Gal




  4. #4
    Duke Carey
    Guest

    RE: Excel - IF Formula and #DIV0!

    In addition to Biff's response, you could change the % formula in F to be

    =IF(c16=0,0,D16/C16)

    and use your current Points Earned formula


    "Newsgal" wrote:

    > How can we get the formula below to drive the correct response when a zero is
    > the divisor? Points earned are SUMMED at the bottom of the spreadsheet which
    > corrupts when the Goal is zero creating a #DIV/0! message is in any of the
    > cells in the SUM range. However, if we correct so #DIV/0! doesn't display,
    > then a zero Goal and zero Actual will drive a 10 points earned result instead
    > of zero points earned.
    >
    > Goal Actual Variance % Points Possible Points Earned
    > 0 0 =D16-C16 =D16/C16 10 =IF(F16>99.5%,10,0)
    >
    > Goal Actual Variance % Points Possible Points Earned
    > $0.00 $0.00 $0 #DIV/0! 10 #DIV/0!
    >
    > Corrected to not display #DIV/0!:
    > Goal Actual Variance % Points Possible Points Earned
    > $0.00 $0.00 $0 10 10
    >
    >
    >
    >
    >
    >
    >
    >
    > --
    > News Gal


+ 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