Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Extract values from a range that are missing from another

I have two vertical lists. I need to compare the two with each other and get the names that are NOT included in both lists.

ListA | ListB
----- | ------
ABC   | ABC
DEF   | DEF
ASD   | GHI
      | ASD

Should return:

GHI
share|improve this question

marked as duplicate by Tom Wijsman, Mokubai, Renan, 8088, Kyle Aug 11 '12 at 4:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 1 down vote accepted

Add this to C1 (assuming you're starting at A1 and B1) and drag down for the full length of the list.

=CONCATENATE(IF(COUNTIF(A:A,B1), "", B1), IF(COUNTIF(B:B,A1), "", A1))
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.