I have a column of names and a column called is broke rules.
- If the person has both broken the rule at lease once and also followed the rule at least once =
partial - If a person has always broken the rule =
rule breaker - If a person has always followed the rule =
rule follower
I know how I would do this programmatically in python or something, but how do I check their actual rule breaking status in excel?
| name | broke rule |
|---|---|
| bob | no |
| bob | no |
| jane | no |
| sam | yes |
| jane | yes |
| jake | no |
| bob | yes |
| paul | no |
The result I want
| name | broke rule | rule breaking status |
|---|---|---|
| bob | no | partial |
| bob | no | partial |
| jane | yes | rule breaker |
| sam | yes | rule breaker |
| jane | yes | rule breaker |
| jake | no | rule follower |
| bob | yes | partial |
| paul | no | rule follower |
| jake | no | rule follower |
I have this formula but it only tells me if the are a rule follower or have broken the rule at least once.
=IF(COUNTIFS(A:A,A2,B:B,"No"),"Broken rule at least once","Rule follower")