0

I want to find duplicate rows where for a column not all of them have the same value.

   SAMPN     PERNO    loop    mode1    mode2   
    1         1         1        1       2      
    1         1         1        1       2       
    1         1         1        1       2      
    1         1         1        1       2      
    1         2         1        1       1        
    1         2         1        1       1        
    1         2         1        1       3      
    2         2         2        3       1       
    2         2         2        3       2        
    2         2         2        3       3        

I want to find duplicate rows in columns SAMPN PERNO loop mode1 which at lease one of them has different value in mode2.

output

   SAMPN     PERNO    loop    mode1    mode2    
    1         2         1        1       1        
    1         2         1        1       1        
    1         2         1        1       3      
    2         2         2        3       1       
    2         2         2        3       2        
    2         2         2        3       3

0 Answers0