ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Comparing 2 excel files (https://www.excelbanter.com/excel-programming/314049-comparing-2-excel-files.html)

Michael E.[_2_]

Comparing 2 excel files
 
Hallo,

I have the following problem

For a mailing-campaign I use an excel file (file "A") with ca. 5000
addresses. Each row contains one address, in column A there is a special
number (7 digits) for each person.

A second file (file "B") contains 1000 addresses some of which are also in
file "A". People in file "B" should not receive the mailing.

Goal: a new file "A" where those addresses are deleted that are included in
file "B". Both files have identical structures (1 address in 1 row; some
addresses have same 7-digit-number in column A)

Any solution for this problem?

Kind regards

Michael E.


Michael E.[_2_]

Comparing 2 excel files
 
A small correction:
same addresses have same 7-digit number in column A
Kind regards
Michael E.

"Michael E." wrote:

Hallo,

I have the following problem

For a mailing-campaign I use an excel file (file "A") with ca. 5000
addresses. Each row contains one address, in column A there is a special
number (7 digits) for each person.

A second file (file "B") contains 1000 addresses some of which are also in
file "A". People in file "B" should not receive the mailing.

Goal: a new file "A" where those addresses are deleted that are included in
file "B". Both files have identical structures (1 address in 1 row; some
addresses have same 7-digit-number in column A)

Any solution for this problem?

Kind regards

Michael E.


Myrna Larson

Comparing 2 excel files
 
Open both workbooks. In file A, in a column on the right, put this formula:

=COUNTIF([Workbook2]Sheet1!$A:$A,A2)

Use AutoFilter to display rows where this value is 0, then delete those rows.

On Tue, 19 Oct 2004 12:39:05 -0700, "Michael E."
wrote:

Hallo,

I have the following problem

For a mailing-campaign I use an excel file (file "A") with ca. 5000
addresses. Each row contains one address, in column A there is a special
number (7 digits) for each person.

A second file (file "B") contains 1000 addresses some of which are also in
file "A". People in file "B" should not receive the mailing.

Goal: a new file "A" where those addresses are deleted that are included in
file "B". Both files have identical structures (1 address in 1 row; some
addresses have same 7-digit-number in column A)

Any solution for this problem?

Kind regards

Michael E.




All times are GMT +1. The time now is 08:10 PM.

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