ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Two lists and how do I extract contents in one from the other? (https://www.excelbanter.com/excel-discussion-misc-queries/251120-two-lists-how-do-i-extract-contents-one-other.html)

Anna De Geer

Two lists and how do I extract contents in one from the other?
 
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

Max

Two lists and how do I extract contents in one from the other?
 
.. 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,R OWS($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
--
Max
Singapore
---
"Anna De Geer" wrote:
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 extract 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



All times are GMT +1. The time now is 07:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com