+ Reply to Thread
Results 1 to 5 of 5

IF Statements to check multiple conditions

  1. #1
    Registered User
    Join Date
    01-08-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel for Office 365
    Posts
    4

    IF Statements to check multiple conditions

    Hi All,

    I have a table (attached) that shows people's progression through a course of 4 parts. I would like use a formula to determine the status of each person's progression. The definitions in my table are -
    If you have started a part of the course, you will have a "p" in that part
    If you have completed the part you will receive either a "c" or a "co"
    If there is a blank in any of the parts you haven't commenced that part.

    My logic is -
    If you have a "c" or a "co" in all four parts, then your course status is "COMPLETED"
    If you have a p in any of the four parts, then your course status is "IN PROGRESS"
    If you have a "c" or a "co" in less than the four parts, then your course status is "IN PROGRESS"
    If all four parts are blank, then your course status is "NOT COMMENCED"

    My search of the forum has confused me as I think I have to use both IF AND statements and IF OR statements and I can't get the order correct.

    Any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by Iamtrying; 03-20-2019 at 08:22 PM. Reason: updated sheet

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: IF Statements to check multiple conditions

    Try this in F2:

    =IF(COUNTIF(B2:E2,"")=4,"Not Commenced",IF(OR(COUNTIF(B2:E2,"p")>0,COUNTIF(B2:E2,"c*")<4),"In Progress","Complete"))

    Also update your MS-Off Ver shown in your profile. Currently, it says that you are using Excel 2003 but you have uploaded a .xlsx workbook which means that you have ≥ 2007.
    Last edited by 63falcondude; 03-20-2019 at 08:39 PM.

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: IF Statements to check multiple conditions

    Put this on F2 and dragged down

    =IF(SUM(COUNTIFS(B2:E2,{"c","co"}))>=4,"Completed",IF(COUNTIF(B2:E2,"p")>0,"In Progress",IF(AND(SUM(COUNTIFS(B2:E2,{"c","co"}))>=1,SUM(COUNTIFS(B2:E2,{"c","co"}))<=4),"In Progress","Not Recommended")))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-08-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel for Office 365
    Posts
    4

    Re: IF Statements to check multiple conditions

    Thank you for the responses. I went with 63falcondude's response and it worked as desired. Cheers

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: IF Statements to check multiple conditions

    Happy to help!

+ 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. Multiple Conditions with If Statements in VBA
    By GSU1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-22-2016, 12:08 PM
  2. [SOLVED] Syntax for formula that uses multiple conditions inside of multiple IF statements
    By njmiller31 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2013, 11:55 AM
  3. [SOLVED] If Statements / Multiple Possible Conditions
    By jmg81485 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2010, 02:52 AM
  4. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  5. Multiple conditions in nested IF statements
    By havfunonline2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2009, 05:36 AM
  6. If statements with multiple conditions
    By afathi in forum Excel General
    Replies: 4
    Last Post: 04-22-2008, 04:30 PM
  7. IF Statements, Multiple Conditions
    By DiamondCutter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-21-2005, 11:25 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