+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Problems using ISERROR with other comparisons in OR function

  1. #1
    Registered User
    Join Date
    03-14-2012
    Location
    manitoba, canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Problems using ISERROR with other comparisons in OR function

    Hello,

    I am getting an #N/A error when using both the ISERROR and A2=0 in the same OR function. When the conditions are used separately, they work as desired.

    I'm trying to test a certain cell (A2 on "Bom" sheet) for the following conditions:
    • If it contains a 0 (zero)
      If it is blank
      If it has an error
    The formula I am using is as follows:

    Please Login or Register  to view this content.
    This formula will work correctly if the cell A2 on "Bom" is blank or 0, but if the cell is #N/A it then breaks my formula.

    If I remove the "Bom!A2=0" part of the formula, it then works with both blanks and #N/A errors.

    It seems that I cannot successfully have either the ISERROR/ISBLANK functions in the OR function along with any direct comparisons (Bom!A2=0)

    Any help with this is greatly appreciated.

    Thank you

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Problems using ISERROR with other comparisons in OR function

    The problem is that the check to see if A2 is 0 will itself generate an error, which you're not trapping.

    How about:

    =IF(AND(Input!J26=1,IFERROR(OR(ISBLANK(Bom!A2),Bom!A2=0),TRUE)),TRUE,FALSE)

  3. #3
    Registered User
    Join Date
    03-14-2012
    Location
    manitoba, canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Problems using ISERROR with other comparisons in OR function

    Quote Originally Posted by Andrew-R View Post
    The problem is that the check to see if A2 is 0 will itself generate an error, which you're not trapping.

    How about:

    =IF(AND(Input!J26=1,IFERROR(OR(ISBLANK(Bom!A2),Bom!A2=0),TRUE)),TRUE,FALSE)
    That does it! Thank you for your quick response!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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