I need your help to phrase a generic condition/formula.
Because my data is very complicated i'll simplify it with a silly example.
let's say I have the following table:
My condition is:
for each Boy I want to check the distance only from Girls that NOTGirlfriend. if one or more of the different distances is less then 5 the result is 'BAD', else the result is 'GOOD'. thereafter, for each time stamp I want to count the number of 'GOOD's and 'BAD's (the total should be equal to the number of Boys in each time stamp).
According the data, for Joe we'll check the distance from Jenny and Monica and the result will be 'BAD' (because the distance from Jenny) and for Billy we'll check the distance only from Nikka and the result will be 'GOOD'.