+ Reply to Thread
Results 1 to 10 of 10

IF in IFERROR, need the result to be 0% if there is an error or the answer is 100%

  1. #1
    Registered User
    Join Date
    08-31-2011
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007
    Posts
    27

    IF in IFERROR, need the result to be 0% if there is an error or the answer is 100%

    Hi everyone!

    I am calculating percentage change with formula: =(IFERROR((D6-C6)/C6;0%)), which results any error to be shown as 0%.

    My problem:

    How could I integrate IF formula with IFERROR, so that if everytime the result is 100%, the result would still show 0%. Or is there another formula I could use?

    Thanks alot,
    Marty
    Last edited by NBVC; 08-31-2011 at 10:43 AM.

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: IF in IFERROR, need the result to be 0% if there is an error or the answer is 100

    Do you only want to do that if the result is exactly 100%, what if it's 101%...or 200% or 300%?
    Audere est facere

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: IF in IFERROR, need the result to be 0% if there is an error or the answer is 100

    Try:

    =IF(ISERROR((D6-C6)/C6);0%;IF((D6-C6)/C6=100%;0%;(D6-C6)/C6))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    08-31-2011
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: IF in IFERROR, need the result to be 0% if there is an error or the answer is 100

    @Daddylonglegs:

    Yeah, only if the result is 100,00%
    Last edited by Domyzon; 08-31-2011 at 10:18 AM.

  5. #5
    Registered User
    Join Date
    08-31-2011
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: IF in IFERROR, need the result to be 0% if there is an error or the answer is 100

    @NBVC:

    It doesn't seem to work, still shows 100%.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: IF in IFERROR, need the result to be 0% if there is an error or the answer is 100

    Did you check if the result of (D6-C6)/C6 is exactly 100% (i.e. is it formatted to show no decimals)?

  7. #7
    Registered User
    Join Date
    08-31-2011
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: IF in IFERROR, need the result to be 0% if there is an error or the answer is 100

    @NBVC:

    Oh, it was -100% I noticed. Thanks alot for your help

    Case solved

  8. #8
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: IF in IFERROR, need the result to be 0% if there is an error or the answer is 100

    You should only get 100% if D6 is exactly double C6 therefore

    =IFERROR(IF(D6/C6=2;0;D6/C6-1);0)

  9. #9
    Registered User
    Join Date
    08-31-2011
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: IF in IFERROR, need the result to be 0% if there is an error or the answer is 100

    Advance button wont work when editing the first post. Cant change it to solved...

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: IF in IFERROR, need the result to be 0% if there is an error or the answer is 100

    I did it for you.

+ 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