Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default quickest way to remove all duplicates?

Hi,

I have a spreadsheet that grows everyday. Basically, A report generate
a load of new rows everyday and appends to a file. I then open the fil
and need to remove all duplicates. This is because if it exists mor
than once, the policy has been actioned...

So what I need from you guys is a simple piece of code to tell me i
there is a way to find all duplicates in a spreadsheet and delete al
rows where there is duplicates.

I tried looping through the rows but it takes about 4 hours!

Is there a simple way to delete all rows where they are duplicates?
However, the duplicates will have to be on 4 columns, A, E,F and G.
match on only one of these columns is not a duplicate.

Does that make any sense?

And

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default quickest way to remove all duplicates?

Well there's a fairly simple process to go through to do this:
1) Insert a new column with the fomula =A&E&F&G
2) go to Data-Filter-Advanced Filter...
3) In Action select "Copy to anoter location"
4) In List range: select just this new column
5) In Copy to: select a cell to the right of all your other data (maybe H1?)
6) Select "Unique records only"
7) Click OK
8) Delete the original columns (A-G?)

You then have only unique records left.

"andycharger " wrote in message
...
Hi,

I have a spreadsheet that grows everyday. Basically, A report generates
a load of new rows everyday and appends to a file. I then open the file
and need to remove all duplicates. This is because if it exists more
than once, the policy has been actioned...

So what I need from you guys is a simple piece of code to tell me if
there is a way to find all duplicates in a spreadsheet and delete all
rows where there is duplicates.

I tried looping through the rows but it takes about 4 hours!

Is there a simple way to delete all rows where they are duplicates?
However, the duplicates will have to be on 4 columns, A, E,F and G. A
match on only one of these columns is not a duplicate.

Does that make any sense?

Andy


---
Message posted from http://www.ExcelForum.com/



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
remove all duplicates? snow Excel Discussion (Misc queries) 3 June 2nd 10 09:54 AM
How do I remove duplicates Gazza Excel Discussion (Misc queries) 7 January 29th 10 04:33 PM
remove duplicates need help faceliftguide Setting up and Configuration of Excel 3 July 14th 09 02:27 PM
remove duplicates BlindShelter Excel Discussion (Misc queries) 2 December 19th 08 08:45 PM
How to remove row duplicates SNAP TO GUIDES DON''T SNAP Excel Discussion (Misc queries) 1 September 10th 08 10:28 PM


All times are GMT +1. The time now is 06:32 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"