COUNTIFS from multi-select drop down

Options

Hi Community, hope you are well!


I would really appreciate some help with the following formula.

In a master metric sheet I would like to count multiple criteria. I am using this formula which works great since it is automated once the @row are filled in by my Team:

=COUNTIFS({Planning sheet Range 2}, PA@row, {Planning sheet Range 3}, Year@row, {Planning sheet Range 4}, Status@row)

The issue is when the "Status@row" is a multi-select, the formula above would count with an implicit AND function, thus, when all the criteria in the multiselect are met. In my case I am interested in an OR function, hence, given the PA and the Year I want to count multiple status from the multiselect at once.

I can opt for the following:

=COUNTIFS({Planning sheet Range 2}, PA@row, {Planning sheet Range 3}, Year@row, {Planning sheet Range 4}, OR(@cell = "Scheduled", @cell = "Posted to System"))


The problem is that this formula would require my Team to edit the Status section of the formula each time - adding and removing elements of the OR function - rather than simply working on the drop down column.


Hope my question is clear enough and very grateful to whom will spend time to help me!


Best,

Alessandro

Best Answer

  • Leibel S
    Leibel S Community Champion
    Answer βœ“

    In regards to your question about blank PA , YEAR , or STATUS.

    You can add an OR statement into your formula. The syntax would be as shown below:

    =COUNTIFS({Planning sheet Range 2},Β OR(ISBLANK(PA@row),@cell = PA@row) , {Planning sheet Range 3},Β OR(ISBLANK(Year@row),@cell = Year@row), {Planning sheet Range 4},Β OR(ISBLANK(Status@row), HAS(Status@row, @cell)))

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!