Two lists and how do I extract contents in one from the other?

A

Anna De Geer

I have two e-mail lists in excel, A and B. List A is a small list and List B
is much longer and includes list A. How can I exctract the e-mails from list
B that are in list A? A short version is: how do I do B minus A? I use Office
2003.
/Anna
 
M

Max

.. how do I do B minus A?
Here's one way that should deliver the expected results
Assume source data running in row2 down
In C2: =IF(B2="","",IF(COUNTIF(A:A,B2),"",ROW()))
In D2: =IF(ROWS($1:1)>COUNT(C:C),"",INDEX(B:B,SMALL(C:C,ROWS($1:1))))
Copy C2:D2 down to the last row of data in col B. Hide away/minimize col C
Col D will return the required results all neatly packed at the top
Success? hit the YES below
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top