+ Reply to Thread
Results 1 to 3 of 3

Avoiding the #Div/0! error message in a formula?

  1. #1
    Registered User
    Join Date
    05-28-2010
    Location
    London
    MS-Off Ver
    MS365 (PC) Version 2301
    Posts
    94

    Avoiding the #Div/0! error message in a formula?

    hi - I need to get the result of a sum which may have 0.00 as a value in its dependents

    I want to allow people to choose how they propose a pay increase, by percentage or £ and then use a formula based on the maximum value between the two but at the same time allow the user to post the inevitable 0.00% and £0.00 at the same time (i.e. no salary increase)

    But when I try to use 0.00 values in a formula I'm getting the DIV/0! error!

    Example attached!

    Thanks in advanceBook14.xlsx
    Last edited by Wilgoss; 10-11-2012 at 06:51 AM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Avoiding the #Div/0! error message in a formula?

    Try..

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Avoiding the #Div/0! error message in a formula?

    Hi wilgoss,

    It is because you are dividing 30000 by zero. Below is what your formula is doing:-

    =30000/0/100

    You can avoid error display by using IFERROR function as shown below:-
    =IFERROR(A7/(E7-A7)/100,"")

    but I believe you should rather revise your logic to do it in much better way. thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

+ 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