+ Reply to Thread
Results 1 to 11 of 11

Multiple IF’s with ISERROR

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Multiple IF’s with ISERROR

    Hi,

    I currently use the following formula using IF and ISERROR i.e.

    =IF(ISERROR(IF(O12-(O12/100*80)<S12,"",IF(O12="","","Warning 20% or less Cover Remains!")))," ",(IF(O12-(O12/100*80)<S12,"",IF(O12="","","Warning 20% or less Cover Remains!"))))

    What I’m after is to add an addition condition e.g. using “IF(O12-(O12/100*80)<S12” and “IF(O12-(O12/100*90)<S12” which would display either Warning 20% or less Cover Remains! or Warning 10% or less Cover Remains! incorporating ISERROR to avoid #N/A

    Any help would be greatly appreciated

    Many thanks

    Rob

    Excel version 2003
    Last edited by robertguy; 11-11-2009 at 04:08 PM. Reason: To mark [SOLVED]
    Rob

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Multiple IF’s with ISERROR

    First of all, why this would be error?

    Not from formula you writed,so if you get O12 as error, can you check that it don't become error?
    Never use Merged Cells in Excel

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Multiple IF’s with ISERROR

    Second, you don't need two conditions:

    “IF(O12-(O12/100*80)<S12” and “IF(O12-(O12/100*90)<S12”

    IF(O12-(O12/100*80)<S1 then it's certanly IF(O12-(O12/100*90)<S12


    So what you looking for? To be less than 20% or less than 10%?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Multiple IF’s with ISERROR

    Third, your formula O12-(O12/100*80) is same as O12(1-80/100) = 0.2*O12

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Multiple IF’s with ISERROR

    So, in general

    IF(O12="","",IF(O12*0.2<S12,"",Warning 20% or less Cover Remains!"))

  6. #6
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Multiple IF’s with ISERROR

    Zbor

    what I'm after is formula with two If Statements i.e.

    IF(O12-(O12/100*80)<S12” OR “IF(O12-(O12/100*90)<S12

    then the warning messages would be either “Warning 20% or less Cover Remains!" OR "Warning 10% or less Cover Remains!"

    In other words the formula checks if O12 is either 80% or 90% and displays the corresponding warning message.

    Ideally I need ISERROR to check if a value #N/A will displayed and enter “ ” instead

    I hope this clarifies my requirements


    Rob

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Multiple IF’s with ISERROR

    OK, here:

    IF(O12="","",IF(O12*0.1<S12,"",Warning 10% or less Cover Remains!"),IF(O12*0.2<S12,"",Warning 20% or less Cover Remains!"))

  8. #8
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Multiple IF’s with ISERROR

    Zbor

    unorunatley when I copied in =IF(O12="","",IF(O12*0.1<S12,"",Warning 10% or less Cover Remains!"),IF(O12*0.2<S12,"",Warning 20% or less Cover Remains!")) I get the error message "The formula you typed contained an error" any ideas?


    Rob

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Multiple IF’s with ISERROR

    Can you upload example?

  10. #10
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Multiple IF’s with ISERROR

    From zbor's last formula, correcting IF statement structure.

    =IF(O12="","",IF(O12*0.1<S12,"Warning 10% or less Cover Remains!",IF(O12*0.2<S12,"Warning 20% or less Cover Remains!","")))
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  11. #11
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Re: Multiple IF’s with ISERROR

    Zbor & ConneXionLost

    Many thanks for your reply and suggestions it is very much appreciated. After some reflection, I released my logic was wrong and I amended my formuas in ConneXionLost code to :-

    =IF(O12="","",IF(S12<O12*0.1,"Warning 10% or less Cover Remains!",IF(S12<O12*0.2,"Warning 20% or less Cover Remains!","")))

    and it worked as required.

    Many thanks again both

    Best regards

    Rob

+ 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