Question : Need to identify duplicate records and delete unique ones!

In an odd twist, I have a project where I need to understand data from items that were subjected to 4 simultaneous "tests" administered 2 at once.  If the item passes 1 of the tests, it is of no interest but if the item fails all tests, I need to report it.  

The data comes to me in set with descriptive data about the item to identify it and the results to "Test 1"  in 1 column and another set of descriptive data with the results to "Test 2" in another column.

Consider Items A, B and C below-

Like this:

Test1       Test2       Descriptive Data
Fail               Pass            Description of A
Fail               Fail            Description of B
Fail                 Pass        Description of A
Fail                  Fail          Description of B
Pass              Fail                 Description of C
Fail                 Pass        Description of C

I would only be interested in keeping descriptive data about Item B.  I think if I can identify B records as duplicates because the descriptive data is the same and the test results are the same that is useful.  The problem is getting rid of "unique" records where one of the tests is positive.

Maybe, I haven't thought this all the way out yet. . . . .

Answer : Need to identify duplicate records and delete unique ones!

If these were in columns A, B, and C:

A1=Fail, B1=Pass, C1=DescriptionOfA
A2=Fail, B2=Fail,  C2=DescriptionOfB
...

Then you could create a new column D:

D1=IF(A1=B1,IF(A1="Pass",TRUE))

This new column would be filled with TRUEs and FALSEs.  Only the TRUEs will have passed both tests.

You can create an AutoFilter to hide all of the FALSEs.

(Data > Filter > AutoFilter)

- Brian Withun



Random Solutions  
 
programming4us programming4us