It is possible to conditionally format the columns so that items not in the other column are highlighted. You can also use the match or vlookup functions in a 3rd and 4th column to list items only in the first column and only in the second column.
For me conditional formatting was kind of difficult to understand at first but here is what you do:
To conditionally format the first column do the following:
- Select the data in column A (a2 to a14 in the example)
- right click on the selection and select Conditional Formatting...
- under "Condition:" select "_expression_ x evaluates to TRUE."
- in the box labeled "x:" enter
and(A2<>"",isna(match(A2,B$2:B$14,0)))
- the A2<>"" makes sure blank cells (perhaps at the end of the list) are not highlighted
- now select the "Background" check box
- click "Edit Style"
- set the "Background Color" to what every you want
- Click "OK"
- Click the "Add" button.
- Click "Close"
Now all the items in column A that are not in column B are highlighted.
Repeat with the second column except change the conditional _expression_ to:
and(B2<>"",isna(match(B2,A$2:A$14,0)))
We can also use another column to display names in column A that aren't in column B on the same row as the original name.
- Select cell C2 and enter:
=if(and(A2<>"",isna(match(A2,B$2:B$14,0))),A2,"")
- copy cell C2
- select cells c3 to c14 and paste the copied cell into these cells
Repeat with cell D2 and the range D3 to D14 but use the _expression_:
=if(and(B2<>"",isna(match(B2,A$2:A$14,0))),B2,"")
I've attached an example with the conditional formatting and the extra columns.
Regards,
Leon Mitchell
Attachment:
Book2.gnumeric
Description: application/gnumeric