+ Reply to Thread
Results 1 to 5 of 5

Percent Error When Known = 0

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Bryan, TX
    MS-Off Ver
    Mac 2011
    Posts
    16

    Percent Error When Known = 0

    I am trying to calculate the percent error where my known quantity is 0.

    Percent error = (Calculated - Known) / Known

    But, how do I calculate this:

    Percent error = (Calculated - 0) / 0 ?

    Excel is going to return a Div/0 error. How do I compensate for the 0 denominator? Telling Excel simply to ignore the problem is NOT an option.
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Percent Error When Known = 0

    "e9"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    02-11-2013
    Location
    Bryan, TX
    MS-Off Ver
    Mac 2011
    Posts
    16

    Re: Percent Error When Known = 0

    As I said, ignoring the error, which your formula does, is not an option!!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: Percent Error When Known = 0

    What do you want to happen if known is zero? You could take this approach:

    =IF(known <> 0, (Calculated - Known) / Known, your_preferred_action)

    Hope this helps.

    Pete

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Percent Error When Known = 0

    Unless you are Chuck Norris, you cannot divide by 0. Percent error has not meaning when the reference value is 0. You, the programmer, or those asking you to solve the problem, will need to decide what "percent" error means when the reference value is 0, then use some kind of IF() function like Pete suggests.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Commission Percent based on Gross Margin Percent Formula
    By canselmi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2019, 07:05 PM
  2. Commission Percent based on Gross Margin Percent Formula
    By canselmi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2019, 01:10 PM
  3. Style 'Percent' not found error
    By bsacco in forum Excel General
    Replies: 2
    Last Post: 06-08-2016, 01:33 PM
  4. OR statements against a document type for percent of error
    By EndlessSpreadsheets in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-28-2015, 01:43 PM
  5. [SOLVED] Calculate Percent Change while avoiding Divide/0 error.
    By bycrofbl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-26-2014, 12:56 AM
  6. Formula or function to find percent of a percent in a population
    By maldron in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2013, 08:26 PM
  7. [SOLVED] is there a percent error function in excel?
    By syco1234 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2005, 11:22 AM

Tags for this Thread

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