+ Reply to Thread
Results 1 to 3 of 3

Multiple if statement based on some conditions

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Multiple if statement based on some conditions

    See attached sample.

    I am trying to automate the status of the test script. These are the scenarios that I am after:

    All based if there is text in each row between B6:B99 (if any row between B6:B99 contains no value, then don't look at column E for that row)
    Column E will have Data Validation Drop down with either Pass or Fail.
    - If E6:E99 contains "Pass" and each row where there is a value in column B has "Pass" then C1 = "Pass"
    - If E6:E99 contains "Pass" and some are blank (never finished the testing) then C1 = "Incomplete"
    - If E6:E99 contains any "Fail" and some are blank, or some are "Pass" etc then C1 = "Fail"
    - If E6:E99 are all blank (testing hasn't started), then C1 = "Not Started"

    I appreciate any help on this, thanks so much!

    samplets.xlsx

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,367

    Re: Multiple if statement based on some conditions

    In cell C1:

    =IF(COUNTIF(E6:E99,"Pass")=COUNTA(B6:B99), "Pass",IF(COUNTIF(E6:E99,"<>")=0,"Not Started",IF(COUNTIF(E6:E99,"Fail")>0, "Fail","Incomplete")))
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Multiple if statement based on some conditions

    Quote Originally Posted by Bernie Deitrick View Post
    In cell C1:

    =IF(COUNTIF(E6:E99,"Pass")=COUNTA(B6:B99), "Pass",IF(COUNTIF(E6:E99,"<>")=0,"Not Started",IF(COUNTIF(E6:E99,"Fail")>0, "Fail","Incomplete")))
    100% perfect. Thank you so much for your quick response. I left you a rep.

    Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IF Statement with Multiple Conditions and Multiple True/False Results
    By ellesutgr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2015, 04:51 PM
  2. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  3. [SOLVED] If statement with multiple conditions
    By Groovicles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2013, 08:56 PM
  4. [SOLVED] If statement using multiple conditions
    By SCOOBYDOO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 03:05 AM
  5. If statement using multiple conditions
    By SCOOBYDOO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] If statement using multiple conditions
    By SCOOBYDOO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2005, 10:05 PM
  7. Multiple conditions for IF statement
    By guilbj2 in forum Excel General
    Replies: 3
    Last Post: 01-10-2005, 01:52 PM

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