+ Reply to Thread
Results 1 to 6 of 6

Calculate Percent Change while avoiding Divide/0 error.

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    Oklahoma, US
    MS-Off Ver
    2010
    Posts
    3

    Calculate Percent Change while avoiding Divide/0 error.

    Alcon,

    Thank you for taking the time to help.

    I am having an issue setting up what I thought was going to be a simple function. I am attempting to create a table that will automatically calculate a change in percent from one week to the next. I am having issues because of zero’s. I am getting a divide by zero error which is throwing everything off.

    My original code was
    Please Login or Register  to view this content.
    However after looking up the problem I came up with this
    Please Login or Register  to view this content.
    Need help.xlsx


    I did CBQ (Can’t Be Quantified) because there cannot be a percent change when going from zero up. However this does not work for me when I have two zero’s in back to back weeks because that would equal no change. So I am seeking to have a function that would eliminate my divide by zero issue but allow for my back to back zero’s to display a no change text.

    See attached sheet looking at cell Q16 shows the where I am running into the issue. Hopefully this was written clear enough but if you need further clarification I will do my best. Thanks again for any help I can get.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate Percent Change while avoiding Divide/0 error.

    You can't meaningfully compute periodover-period vchange when the prior period is not postive, and the financial journals don't. Seem for example, http://online.wsj.com/public/resourc...s/doe-help.htm
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Calculate Percent Change while avoiding Divide/0 error.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate Percent Change while avoiding Divide/0 error.

    You can't meaningfully compute period-over-period vchange when the prior period is zero or negative, and the financial journals don't. See, for example, http://online.wsj.com/public/resourc...s/doe-help.htm

  5. #5
    Registered User
    Join Date
    09-23-2014
    Location
    Oklahoma, US
    MS-Off Ver
    2010
    Posts
    3

    Re: Calculate Percent Change while avoiding Divide/0 error.

    Hum, Thank you very much that did the trick.

  6. #6
    Registered User
    Join Date
    09-23-2014
    Location
    Oklahoma, US
    MS-Off Ver
    2010
    Posts
    3

    Re: Calculate Percent Change while avoiding Divide/0 error.

    SHG, I understand that its not very meaningful, however its something that my bosses do what and something i need to be able to display. Thank you for the time.

+ 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. How to Times a percent, and be able to change percent.
    By ILCentral in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2012, 11:55 AM
  2. Can not calculate daily percent change using excel functions
    By atul_stock2008 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-02-2010, 12:09 AM
  3. Calculate grade based on percent change
    By beeawwb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2007, 08:39 AM
  4. Replies: 4
    Last Post: 05-06-2005, 07:06 AM
  5. Replies: 4
    Last Post: 05-06-2005, 07:06 AM

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