+ Reply to Thread
Results 1 to 4 of 4

Nesting OR/AND/IF issue

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Nesting OR/AND/IF issue

    I want to return "None" if two conditions are met.

    Condition 1: =IF(AND(ISERROR(DQ6),B6<>"Not Found"),"None","")

    i.e if DQ6 is Error, AND B6 does NOT equal "Not Found", then return None.

    This formula works fine.

    Condition 2: However, i want to ALSO return "None" if the sum of a range is equal to 0.

    =IF(SUM(CY6:DQ6)=0,"None","")

    again this works.

    However, im struggling to nest the two formula into a single cell?

    Summary:

    If DQ6 is Error, AND B6 does NOT equal "Not Found", then return "None". Also return "None" if sum of a range is 0.

    Help!

    Regards,

    Mike
    Last edited by Fursmanm; 09-05-2012 at 07:20 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Nesting OR/AND/IF issue

    Perhaps
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-24-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Nesting OR/AND/IF issue

    thanks for help but your solution doesnt seem to work,

    works for the sum part, but it returns N/A if cell DQ6 is an error, rather than returning "None"

  4. #4
    Registered User
    Join Date
    02-24-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Nesting OR/AND/IF issue

    thanks for help but your solution doesnt seem to work,

    works for the sum part, but it returns N/A if cell DQ6 is an error, rather than returning "None"

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Nesting OR/AND/IF issue

    Then try this one.

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    02-24-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Nesting OR/AND/IF issue

    That didnt work either! but thank you for trying!

    I have actually figured it out now, i switched the two conditions round so it deals with the N/A values first, otherwise it was returning N/A straight off the bat.

    If anyones reading this in like 5 years time (i seem to find myself reading 5 year old threads a lot at the moment!) a working formula is:

    =IF(AND(ISERROR(DQ5),B5<>"Not Found"),"None",IF(SUM(CY5:DQ5)=0,"None",""))

+ 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