+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : IF Statement Help

  1. #1
    Registered User
    Join Date
    08-25-2010
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    44

    IF Statement Help

    Hello,

    I have 11 questions on an excel sheet - The answer to them is either YES OR NO OR N/A.

    I want a cell that says

    if they are all YES THEN ITS A PASS
    if ONE of them IS NO, THEN ITS A FAIL
    if any are N/A then ignore

    Please help
    Thank you

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: IF Statement Help

    I don't understand
    if any are N/A then ignore
    Do you want all 11 questions to be "yes" for a pass? If so, N/A are irrelevant.

    =IF(COUNTIF(A1:A11,"yes")=11,"Pass","Fail")

    or

    =IF((COUNTIF(A1:A11,"yes")+COUNTIF(A1:A11,"N/A"))=11,"Pass","Fail")

    or

    =IF(COUNTIF(A1:A11,"no")>1,"Fail","Pass")

    Depending on your preference.


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-25-2010
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: IF Statement Help

    Thanks very much mate bottom one works great, had to add = to or less than 1 NO works perfect

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: IF Statement Help

    You're welcome. Sorry, missed the "equals one".

    If this has answered your question, please mark your thread as solved. See my signature for details or the FAQ.

    Regards

+ 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