+ Reply to Thread
Results 1 to 8 of 8

Multiple IF criteria, return alternative value from multiple IF criteria

  1. #1
    Registered User
    Join Date
    11-27-2020
    Location
    Libreville
    MS-Off Ver
    Office 10
    Posts
    42

    Angry Multiple IF criteria, return alternative value from multiple IF criteria

    Hi,
    I am stuck with a formula that looks simple but that is not working. Actually, I have 8 columns as follows: A2 for action items, B2 for start date, then a rage of C2, D2, E2 and F2 for the four weeks of the month; and then G2 for action closure date, and finally H2 for action status. Now, I want is this:
    1) IF A2 is blank, then H2 should show "blank"
    2) IF A2 contains text (action items), then H2 should show "Open"
    3) IF B2 contains date (action resolution start date), then H2 should show "Ongoing"
    4) IF range (C2:F2) contains "Ok", OR G2 contains date (resolution completion date), then H2 should show "closed"

    The formula I tried is: =IF(A2="","",IF(ISNUMBER(B2),"Ongoing",IF(OR(COUNTIFS(C2:F2,"ok"),ISNUMBER(G2)),"Closed","Open")))
    But it works only on the first 3 criteria, but would not work on the last. So, I can get Blank, Open, and Ongoing, but I can't get Closed.

    Please help!
    Attached Files Attached Files
    Last edited by Joe.Mintsa; 09-15-2022 at 12:37 PM. Reason: Attach a ample excel sheet

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,359

    Re: Multiple IF criteria, return alternative value from multiple IF criteria

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-27-2020
    Location
    Libreville
    MS-Off Ver
    Office 10
    Posts
    42

    Re: Multiple IF criteria, return alternative value from multiple IF criteria

    Hi Ali,
    Thanks a lot for your instructions!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,359

    Re: Multiple IF criteria, return alternative value from multiple IF criteria

    Still no workbook, though ...

    And your profile still hasn't been updated.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,359

    Re: Multiple IF criteria, return alternative value from multiple IF criteria

    Try this:

    =IF(A2="","",IF(OR(COUNTIF(C2:F2,"ok")>=1,ISNUMBER(G2)),"Closed",IF(ISTEXT(A2),"Open","Ongoing")))

  6. #6
    Registered User
    Join Date
    11-27-2020
    Location
    Libreville
    MS-Off Ver
    Office 10
    Posts
    42

    Re: Multiple IF criteria, return alternative value from multiple IF criteria

    Hi Ali,

    Thanks for such support. I have applied the formula. It is almost perfect. I get blanck when A2 is blank; I get "Open" when A2 is not blank; and I finally get "closed" in either "ok" in the range (C2:F2) or closure date in G2; but I cannot get "Ongoing" when entering start date into B2. Maybe juste one little thing is missing ???

  7. #7
    Registered User
    Join Date
    11-27-2020
    Location
    Libreville
    MS-Off Ver
    Office 10
    Posts
    42

    Re: Multiple IF criteria, return alternative value from multiple IF criteria

    Hi Ali,

    I tried this: =IF(A3="","",IF(OR(COUNTIF(C3:F3,"ok")>=1,ISNUMBER(G3)),"Closed",IF(ISNUMBER(B3),"Ongoing","Open"))) and it is now working.

    Thank you so much. YOU'RE SUPER GOOD !!!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,359

    Re: Multiple IF criteria, return alternative value from multiple IF criteria

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered 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. [SOLVED] Lookup multiple criteria in multiple columns in multiple rows; return true if exists
    By ufdlim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2019, 02:03 PM
  2. Alternative to IF with multiple criteria.
    By garfolino in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2015, 08:07 PM
  3. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  4. [SOLVED] Sumifs or alternative formula needed for multiple criteria
    By bwmuhich in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-31-2015, 02:41 PM
  5. [SOLVED] Alternative to COUNTIFS with multiple criteria
    By Ricardo Mass in forum Excel General
    Replies: 2
    Last Post: 11-06-2014, 10:29 AM
  6. Replies: 0
    Last Post: 05-22-2014, 11:16 AM
  7. COUNTIF Alternative for multiple criteria?
    By Dan17602 in forum Excel General
    Replies: 6
    Last Post: 03-21-2011, 12:49 PM

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