![]() |
Finding Duplicates
Excel 2003
I use Excel for a mailing database. Because there are so many "records" (approx 6,000) it is likely that there will be different people who share a name. I don't want to filter out John Hanks at Company XYZ just because the advanced filter finds a John Hanks at ABC Company. So question 1 is how does Excel determine which will be filtered out--in what order does it work. I'd like to understand which John Hanks would be determined to be the duplicate. Question 2 is how do I tell Excel that I only want it to look at the company name column when determining whether the record is a duplicate. Thanks so much for any help! |
Finding Duplicates
Karen
Try Data, Filter, Advanced Filter, Click Copy to a new place and choose Unique Records Only. You could also copy in place, but if I was creating a mailing list I'd feel safer with the extracted data, but someone will probably know that this is unnecessary. One point still examing your data. "John" and "John " with a space are considered different records because they are not identical. Peter "Karen" wrote: Excel 2003 I use Excel for a mailing database. Because there are so many "records" (approx 6,000) it is likely that there will be different people who share a name. I don't want to filter out John Hanks at Company XYZ just because the advanced filter finds a John Hanks at ABC Company. So question 1 is how does Excel determine which will be filtered out--in what order does it work. I'd like to understand which John Hanks would be determined to be the duplicate. Question 2 is how do I tell Excel that I only want it to look at the company name column when determining whether the record is a duplicate. Thanks so much for any help! |
Finding Duplicates
If you sorted your records by name and by company (assume columns A
and B), then you could introduce a formula like this in a helper column: =IF(AND(A2=A1,B2=B1),"duplicate","") and copy this down. This will only flag duplicate if both the name and the company name in two adjacent rows are the same. If you wanted to delete these duplicates, then you could apply autofilter to the helper column to select "duplicate". Then highlight the visible records and Edit | Delete Row, and then select "All" from the filter pull-down. Hope this helps. Pete On Apr 3, 11:06*pm, Karen wrote: Excel 2003 I use Excel for a mailing database. Because there are so many "records" (approx 6,000) it is likely that there will be different people who share a name. I don't want to filter out John Hanks at Company XYZ just because the advanced filter finds a John Hanks at ABC Company. So question 1 is how does Excel determine which will be filtered out--in what order does it work. I'd like to understand which John Hanks would be determined to be the duplicate. Question 2 is how do I tell Excel that I only want it to look at the company name column when determining whether the record is a duplicate. Thanks so much for any help! |
Finding Duplicates
Brilliant, thanks Pete!
"Pete_UK" wrote: If you sorted your records by name and by company (assume columns A and B), then you could introduce a formula like this in a helper column: =IF(AND(A2=A1,B2=B1),"duplicate","") and copy this down. This will only flag duplicate if both the name and the company name in two adjacent rows are the same. If you wanted to delete these duplicates, then you could apply autofilter to the helper column to select "duplicate". Then highlight the visible records and Edit | Delete Row, and then select "All" from the filter pull-down. Hope this helps. Pete On Apr 3, 11:06 pm, Karen wrote: Excel 2003 I use Excel for a mailing database. Because there are so many "records" (approx 6,000) it is likely that there will be different people who share a name. I don't want to filter out John Hanks at Company XYZ just because the advanced filter finds a John Hanks at ABC Company. So question 1 is how does Excel determine which will be filtered out--in what order does it work. I'd like to understand which John Hanks would be determined to be the duplicate. Question 2 is how do I tell Excel that I only want it to look at the company name column when determining whether the record is a duplicate. Thanks so much for any help! |
Finding Duplicates
You're welcome, Karen - thanks for taking the trouble to feed back.
On Apr 7, 10:25*pm, Karen wrote: Brilliant, thanks Pete! "Pete_UK" wrote: If you sorted your records by name and by company (assume columns A and B), then you could introduce a formula like this in a helper column: =IF(AND(A2=A1,B2=B1),"duplicate","") and copy this down. This will only flag duplicate if both the name and the company name in two adjacent rows are the same. If you wanted to delete these duplicates, then you could apply autofilter to the helper column to select "duplicate". Then highlight the visible records and Edit | Delete Row, and then select "All" from the filter pull-down. Hope this helps. Pete On Apr 3, 11:06 pm, Karen wrote: Excel 2003 I use Excel for a mailing database. Because there are so many "records" (approx 6,000) it is likely that there will be different people who share a name. I don't want to filter out John Hanks at Company XYZ just because the advanced filter finds a John Hanks at ABC Company. So question 1 is how does Excel determine which will be filtered out--in what order does it work. I'd like to understand which John Hanks would be determined to be the duplicate. Question 2 is how do I tell Excel that I only want it to look at the company name column when determining whether the record is a duplicate. Thanks so much for any help!- Hide quoted text - - Show quoted text - |
All times are GMT +1. The time now is 02:38 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com