SOLVED

Excel Formula for multiple conditions

Copper Contributor

Hi 

I'm trying to work out a formula for the following conditions in a range of cells, between the options of "Yes", "No" and "Mostly"

 

1.If all answers "Yes" then "Doing Our Job"

2.If a mixture of "Yes" "Mostly" then "Underperforming"

3.If at least one "No" then "Unacceptable" if not "Underperforming"

 

Currently I've worked out this formula using IFS function:

=IFS(SUMPRODUCT(--(C4:F24="Yes")),"Doing Our Job", COUNTIF(C4:F24,"No"),"Unacceptable",(COUNTIF(C4:F24,"Yes")+COUNTIF(C4:F24,"Mostly")),"Underperforming")

 

Is there a better way to do this?

Could you please help me with the same, thanks in advance! 

5 Replies
best response confirmed by RaveenaAV (Copper Contributor)
Solution

@RaveenaAV 

=IFS(
  COUNTIFS(C4:F24,"Yes")=COUNTA(C4:F24),"Doing Our Job",
  COUNTIFS(C4:F24,"No"),"Unacceptable",
  TRUE,"Underperforming"
)
Thank you for your reply!
But the above formula seems to return "underperforming" when all the entries are "Yes".

@RaveenaAV 

Not in my world.

 

Thank you very much! I had a text column in between thereby the error.

@RaveenaAV 

You mean a column with texts that should not be counted?

Then adjust COUNTA().

 

1 best response

Accepted Solutions
best response confirmed by RaveenaAV (Copper Contributor)
Solution

@RaveenaAV 

=IFS(
  COUNTIFS(C4:F24,"Yes")=COUNTA(C4:F24),"Doing Our Job",
  COUNTIFS(C4:F24,"No"),"Unacceptable",
  TRUE,"Underperforming"
)

View solution in original post