• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Categorise Data Based on Combination of Variables

adamuce

Member
2nllzb.jpg
[/IMG] I have two questions so will ask them 1 after the other, in regards to the table below


Easier one first


I want to categorise Trucks by their tanks and the 3 categories are in Type 1 column:

No SS: SS column: "No" + "Yes" in any columns X1 to X3
SS Only: SS column: "Yes" + "No" in all columns X1 to X3
Partial SS: SS column: "Yes" +"Yes" in any of X1-X3


Im assuming the formula to be used is an IF and AND.
 

Attachments

  • excel pic.png
    excel pic.png
    3.4 KB · Views: 9
Welcome to the forum!

See attached, using this formula:

=IF(B3="Yes",IF(COUNTIF(C3:E3,"No")=3,"SS Only",IF(COUNTIF(C3:E3,"Yes")>0,"Partial SS")),IF(COUNTIF(C3:E3,"Yes")>0,"No SS"))
 

Attachments

  • adamuce1.xlsx
    8.6 KB · Views: 2
Back
Top