if statement - Excel - check if one of the rows with same number has a value in an other column -


i have problem data request trying analyse automatically. data consists of number of values , depening on formula answer in specific column set "yes" or "no". want check if 1 of rows containing same number have answer "yes" in second column.

the number of rows same number in can vary.

the solution might simple, can't seem right formula determine it. hope can me out.

below example of dataset , expected outcome.

1   yes 1   yes 2   no 3   no 3   yes 4   no 4   no 5   yes 5   yes 5   no 5   no 5   no 6   no 6   yes 

so based on dataset result should be:

1   yes 2   no 3   yes 4   no 5   yes 6   yes 

assuming data in columns a:b , c:c column numbers 1-6:

=if(countifs($a:$a,$c1,$b:$b,"yes")>0,"yes","no") 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -