+ Reply to Thread
Results 1 to 13 of 13

#DIV/0! - How do i avoid seeing this message?

  1. #1
    Registered User
    Join Date
    09-16-2016
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    84

    #DIV/0! - How do i avoid seeing this message?

    Hello,

    I was wondering is someone can help me please.

    I have the attached spread sheet and I use it to monitor if I discount products do I see the uplift in sales.

    For Example:

    Product 1, I launched it on 21/12/18 and never sold any, discounted it on 26/04/18 and sold 2 in the last 2 weeks therefore averaging 1 per week.

    If I average 1 per week for the remaining 31 weeks of the year I should see a big percentage uplift, but because my original sales are zero I see the #DIVO/0! message, is there anyway to trick excel so I see my percentage?

    I hope this makes sense?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,360

    Re: #DIV/0! - How do i avoid seeing this message?

    But if there are 0 sales, there is no percentage ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,309

    Re: #DIV/0! - How do i avoid seeing this message?

    =IF(OR(D2=0;D2="");"";I2/D2-1)

    Try this formula
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: #DIV/0! - How do i avoid seeing this message?

    =IFERROR(I2/D2-1,0)
    or
    =IFERROR(I2/D2-1,"")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: #DIV/0! - How do i avoid seeing this message?

    This states it pretty well: "There is no rate of growth from 0 to any other number. That is to say, there is no percentage of increase from zero to greater than zero and there is no percentage of decrease from zero to less than zero (a negative number). What you have to decide is what to put as an output when this situation happens."

    I believe that most consider this as an infinite rate of growth.

  6. #6
    Registered User
    Join Date
    09-16-2016
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    84

    Re: #DIV/0! - How do i avoid seeing this message?

    To me if sales go from zero to one its a 100% increase so that is what I would like to see, not #DIV/0!.

    I've tried the below formulas and non see to do this?

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: #DIV/0! - How do i avoid seeing this message?

    Quote Originally Posted by 63falcondude View Post
    I believe that most consider this as an infinite rate of growth.
    I don't know what business people consider it to be but mathematicians say it is undefined. To calculate a number as a percentage of zero is meaningless.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  8. #8
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: #DIV/0! - How do i avoid seeing this message?

    Quote Originally Posted by ExcelnoviceUK View Post
    To me if sales go from zero to one its a 100% increase so that is what I would like to see, not #DIV/0!.

    I've tried the below formulas and non see to do this?
    Since the only error appears to be DIV/0

    just change my formula to

    =IFERROR(I2/D2-1,1)
    or
    =IF(AND(D2=0,I2<>0,1)

    Job done.

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: #DIV/0! - How do i avoid seeing this message?

    Jeff, I suppose that I should have been more careful with the use of the word "most".

    From my experience, I have seen an increase from 0 considered as an undefined increase or an infinite increase.

    Neither of which, as you said, mean very much.

  10. #10
    Registered User
    Join Date
    09-16-2016
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    84

    Re: #DIV/0! - How do i avoid seeing this message?

    Hi Special K,

    Thank you for your help.

    your formula works if the increase is from zero to 1 it states - 100%.

    However if the increase is from zero to 31 it states 100%, where I would like it to say 3100%.

    Thank you.

  11. #11
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: #DIV/0! - How do i avoid seeing this message?

    It doesn't make sense but this formula should return what you are looking for:

    =IF(D2=0,I2,I2/D2-1)

  12. #12
    Registered User
    Join Date
    09-16-2016
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    84

    Re: #DIV/0! - How do i avoid seeing this message?

    Hello 63falcondude,

    This is perfect . . . . Thank you very much for your help!

    Regards,

  13. #13
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: #DIV/0! - How do i avoid seeing this message?

    You're welcome. Thanks for the rep!

+ 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 can I avoid a message popup
    By Jazzzbo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2013, 12:36 PM
  2. Avoid displayin an alert message
    By pezalmendra in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-17-2012, 02:42 PM
  3. IF function to avoid #DIV/0! error message
    By Si902 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2010, 02:42 AM
  4. How to avoid message about leaving data in clipboard?
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2010, 12:33 PM
  5. How to avoid pivot table's (blank) message
    By acsishere in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2008, 10:51 AM
  6. Replies: 1
    Last Post: 08-13-2006, 08:00 AM
  7. [SOLVED] Can I avoid annoying Update Links message
    By phillyjoe in forum Excel General
    Replies: 2
    Last Post: 10-29-2005, 10:05 AM
  8. How can avoid the security Macro message ...
    By John B in forum Excel General
    Replies: 1
    Last Post: 03-29-2005, 03:06 PM

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