+ Reply to Thread
Results 1 to 4 of 4

How to speed up deleting duplicates using a filter

  1. #1
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    How to speed up deleting duplicates using a filter

    Hello guys,

    I am working on this code that will take all the ".CSV" files in a directory and import them into a massr workbook. Up to here the code runs perfectly. When I have all the data in the Master workbook I have to make sure I have no duplicates. For that I concatenate the name of the company and the address to obtain an auxiliary column and then filter and eliminate the duplicates the only issue is that it takes forever.

    Any ideas on how to speed this up a little.

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    re: How to speed up deleting duplicates using a filter

    Pull the whole array into core - one for the data and one for the data deduplicated.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    re: How to speed up deleting duplicates using a filter

    Thanks for the reply xladept

    I really don't understand what you mean plus Arrays are a huge headache for me. But I tried something simple and it worked instead of creating filters to deduplicate why dont use the function that comes with excel.

    Here is my final code

    BTW I took it out of the main code for modularization

    Please Login or Register  to view this content.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    re: How to speed up deleting duplicates using a filter

    Glad you got it - way to go!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1