COUNTIFS on the same column and COUNTIFS on other columns

Lori Khoury
Lori Khoury ✭✭✭✭✭
edited 12/09/19 in Formulas and Functions

Hi 

I am trying perform the COUNTIFS function and can't get this to work.  So what I need to count is the following

  1. Count if criteria is "s" in the function column
  2. Count if criteria is "Med" in the priority column
  3. Count if criteria is "No" in the project column 
  4. And from the same project column I need to count if criteria is "partial" also.

My formula has step 1-3 but I can't figure out how to include step 4.

=COUNTIFS(Functions2:Functions290, "s", Priority2:Priority290, "Med", Project2:Project290, "No")

Any chance someone knows how to do this?  Criteria from multiple columns and then 2 criteria from the same column.

Any help would be greatly appreciated.

 

Thanks

Tags:

Comments

  • ricki
    ricki ✭✭✭✭✭✭

    How can your project field say both No and partial at the same time? That may be the issue here? are you trying to count if it either has the word no or the word partial?

     

    Did you try?

    =COUNTIFS(Functions2:Functions290, "s", Priority2:Priority290, "Med", Project2:Project290, "No",Project2:Project290, "partial")

  • Lori Khoury
    Lori Khoury ✭✭✭✭✭

    Hi thanks for responding.  Yes I tried that and it didn't work.  Do you have any other ideas?

  • ricki
    ricki ✭✭✭✭✭✭

    I don't really understand what you are trying to do. You have a project field. Either it will say "No" or it will say "partial" if it is only one word it cannot say both at the same time. What are you really trying to count

  • Mike Wilday
    Mike Wilday ✭✭✭✭✭✭

    What you need to do is add two countifs together. The first one would check for the requirements plus NO, and the second would count the requirements plus the Partial. Try this one. 

    =COUNTIFS(Functions2:Functions290, "s", Priority2:Priority290, "Med", Project2:Project290, "No") +  COUNTIFS(Functions2:Functions290, "s", Priority2:Priority290, "Med", Project2:Project290, "Partial")

    Basically, you adding the result of two countifs together. 

  • Lori Khoury
    Lori Khoury ✭✭✭✭✭

    It worked and it makes total sense now that I see the formula.  Thank you so much.  I am just learning how to do all the formulas.  I really appreciate your help.

     

    Thank you!!!!!

  • Mike Wilday
    Mike Wilday ✭✭✭✭✭✭

    Glad I could be of help! :) 

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!