Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 124
Default Compare and delete duplicate records

We have 2 Excel 2007 spreadsheets of data.

List 1 contains 12,000 records and we wish to remove the contents of list 2
which contains 3,000 records.

Is there a simple way of doing this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Compare and delete duplicate records

Not sure how it is duplicated - does your list of 3000 records contain
records which are duplicated (among themselves)? Or does the shorter
list contain records which are also in the longer list, and you want
to get rid of these duplicates?

You can put a formula in a helper column which looks to see if the
record on that row is contained within the longer list (using MATCH
with a column which has unique values - I can't give you a specific
formula because you have not described your data) and return something
like "remove". Then you can apply autofilter to that column and select
"remove", then highlight all the visible rows and Edit | Delete Row.
When you remove the autofilter you should be left with the non-
duplicate records.

Hope this helps.

Pete

On Jun 16, 4:18*pm, charles wrote:
We have 2 Excel 2007 spreadsheets of data.

List 1 contains 12,000 records and we wish to remove the contents of list 2
which contains 3,000 records.

Is there a simple way of doing this?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 124
Default Compare and delete duplicate records

Pete

Thanks for coming back to me.

Yes the latter, the list 2 contains 3000 records which we want deleted out
of the 12000 list 1. Does this make more sense?

"Pete_UK" wrote:

Not sure how it is duplicated - does your list of 3000 records contain
records which are duplicated (among themselves)? Or does the shorter
list contain records which are also in the longer list, and you want
to get rid of these duplicates?

You can put a formula in a helper column which looks to see if the
record on that row is contained within the longer list (using MATCH
with a column which has unique values - I can't give you a specific
formula because you have not described your data) and return something
like "remove". Then you can apply autofilter to that column and select
"remove", then highlight all the visible rows and Edit | Delete Row.
When you remove the autofilter you should be left with the non-
duplicate records.

Hope this helps.

Pete

On Jun 16, 4:18 pm, charles wrote:
We have 2 Excel 2007 spreadsheets of data.

List 1 contains 12,000 records and we wish to remove the contents of list 2
which contains 3,000 records.

Is there a simple way of doing this?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Compare and delete duplicate records

Yes, my second paragraph describes how to do it. You would have
something like:

=IF(ISNA(MATCH(A1,Sheet1!A:A,0)),"not present","duplicate")

in a helper column in Sheet2, and you would copy this down your 3000
rows. This assumes that column A contains the unique identifier in
both lists, and the formula will return "not present" for a unique
record and "duplicate" for duplicated records. As advised earlier, you
can then use autofilter on this helper column to remove the
"duplicate" records.

Hope this helps.

Pete

On Jun 16, 6:14*pm, charles wrote:
Pete

Thanks for coming back to me.

Yes the latter, the list 2 contains 3000 records which we want deleted out
of the 12000 list 1. Does this make more sense?



"Pete_UK" wrote:
Not sure how it is duplicated - does your list of 3000 records contain
records which are duplicated (among themselves)? Or does the shorter
list contain records which are also in the longer list, and you want
to get rid of these duplicates?


You can put a formula in a helper column which looks to see if the
record on that row is contained within the longer list (using MATCH
with a column which has unique values - I can't give you a specific
formula because you have not described your data) and return something
like "remove". Then you can apply autofilter to that column and select
"remove", then highlight all the visible rows and Edit | Delete Row.
When you remove the autofilter you should be left with the non-
duplicate records.


Hope this helps.


Pete


On Jun 16, 4:18 pm, charles wrote:
We have 2 Excel 2007 spreadsheets of data.


List 1 contains 12,000 records and we wish to remove the contents of list 2
which contains 3,000 records.


Is there a simple way of doing this?- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Duplicate records Finger Tips Excel Worksheet Functions 2 April 29th 07 08:42 PM
how to delete duplicate records in a row Christian Setting up and Configuration of Excel 2 July 21st 06 01:39 AM
How do I delete duplicate records from an entire Excel workbook? Steven B. Excel Discussion (Misc queries) 0 December 6th 05 10:32 AM
automatically delete records w/duplicate address in excel PUSH Excel Discussion (Misc queries) 1 May 24th 05 12:48 PM
How to delete duplicate records when I merge two lists (deleting . rinks Excel Worksheet Functions 10 December 11th 04 01:03 AM


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"