+ Reply to Thread
Results 1 to 5 of 5

Combining IF with multiple COUNTIF statements

  1. #1
    Registered User
    Join Date
    03-31-2020
    Location
    San Antonio
    MS-Off Ver
    TX
    Posts
    2

    Combining IF with multiple COUNTIF statements

    Hi and thank you in advance for your help!
    I am a teacher trying to keep track of completion of distance learning assignments across several classes.
    I need for my formula to check the number of "Complete" across a range of cells and then return "Complete" if there are 5, "None" if there are 0, and "Some" if there are 1-4.

    I can nest one COUNTIF statement within the IF statement to return "None" or "Some", but I am unsure of how to alter the formula to include "Complete" if there are 5.
    This is the formula I am using:
    =IF(COUNTIF(C2:G2, "Complete")=0, "None", "Some")

    In this case:
    Complete.JPG
    I need for the formula to return "Complete"

    Ideas?

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Combining IF with multiple COUNTIF statements

    this would be one way...
    =IF(COUNTIF(C20:G20,"complete")>=5,"Complete",IF(AND(COUNTIF(C20:G20,"complete")<5,COUNTIF(C20:G20,"complete")>=1),"Some",IF(COUNTIF(C20:G20,"complete")=0,"None","")))
    or if you have no other options this shorter version...
    =IF(COUNTIF(C20:G20,"complete")>=5,"Complete",IF(AND(COUNTIF(C20:G20,"complete")<5,COUNTIF(C20:G20,"complete")>=1),"Some","None"))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Combining IF with multiple COUNTIF statements

    Hello and Welcome to the Forum,

    One way

    =CHOOSE(MATCH(COUNTIF($C20:$G20,"Complete"),{0,1,2,3,4,5},0),"None","Some","Some","Some","Some","Complete")
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    03-31-2020
    Location
    San Antonio
    MS-Off Ver
    TX
    Posts
    2

    Re: Combining IF with multiple COUNTIF statements

    Omg thank you SO much. You're a lifesaver.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Combining IF with multiple COUNTIF statements

    You are very welcome and thanks for the feedback. We are truly happy to help.

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

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 those who helped.

+ 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. Combining Multiple IF Statements
    By jkfoxworth in forum Excel General
    Replies: 2
    Last Post: 07-01-2015, 09:17 PM
  2. [SOLVED] Combining Multiple If Statements
    By Ash248 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 09-07-2013, 01:47 PM
  3. Combining mutiple IF and CountIF statements to help sort data
    By frekemeister in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2013, 07:33 AM
  4. Excel 2007 : combining two countif statements
    By stephsmom in forum Excel General
    Replies: 7
    Last Post: 02-23-2012, 04:49 PM
  5. combining two countif statements
    By stephsmom in forum Excel General
    Replies: 3
    Last Post: 02-23-2012, 12:51 PM
  6. Combining Multiple IF Statements
    By prefcomm in forum Excel General
    Replies: 2
    Last Post: 11-11-2009, 11:35 PM
  7. Combining COUNTIF statements with different criteria
    By Darlo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2007, 02:32 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