+ Reply to Thread
Results 1 to 10 of 10

Quick Dupe Check

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Quick Dupe Check

    I have a report that is 14K rows deep, 428 columns wide. I need to find (not delete) all duplicates in a single column ("Posn").

    If I do Conditional Formatting to highlight the dupes, the CF appears to work quickly, but when I go to filter on those results (to filter to my dupes), my filter takes five minutes.

    Is there a faster way?
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Quick Dupe Check

    In the old days, I would have added a Helper column and used a COUNTIF to identify rows with duplicated entries. Then you can filter on the Helper column.

    You can use a simple COUNTIF, for example:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or, if you are interested in omitting the first of the entries, you can use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Conditional formatting can be slow and a bit of a pain over large ranges of cells
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Quick Dupe Check

    TMS, I'm so sorry I didn't reply sooner. I never got notified that anyone had replied to this thread, so this is the first day I've come back to it. The countif method works, I just have to add and then delete a column. I was hoping that someone had developed a really quick way to do this.

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Quick Dupe Check

    Okay, I have a solution, but I'm not entirely happy with it. It's marginally faster than Conditional Formatting, but with 15,000 rows (only one column) it still takes a long time. if anybody can suggest a way to speed it up I'd love to hear it.
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Quick Dupe Check

    Okay, two possibilities, both as slow as molasses on my range (single column, 15000 rows of almost all unique values). This is a nasty sheet so I have to determine the RealUsedRange. I still need help on this.
    Please Login or Register  to view this content.
    Last edited by jomili; 12-04-2018 at 12:48 PM.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Quick Dupe Check

    How about
    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Quick Dupe Check

    Holy Smokes, that was fast! Much better than the approach I was taking. I changed it a bit to make it variable to any column I want it to work on. At some point I'd like to make it more Row variable (in case my range starts at, say, F25), but what you've given me is way above what I've been working with. Thanks so much!
    Please Login or Register  to view this content.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Quick Dupe Check

    Glad to help & thanks for the feedback.

    If you are ever going to be using column AA onwards, this would be a better way of getting the column letter
    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Quick Dupe Check

    Very useful. Thanks.

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Quick Dupe Check

    You're welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Quick Syntax Check
    By HarryGreenwood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2015, 01:24 PM
  2. Please help quick, check multiple textboxes.
    By Robomanrob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2013, 09:26 AM
  3. [SOLVED] Quick VBA to check a list
    By Simon.Ward in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-25-2013, 12:50 PM
  4. quick check for value in a column
    By danj in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-23-2011, 02:54 PM
  5. Quick check prior to DELETE sheet
    By BallGazer in forum Excel General
    Replies: 3
    Last Post: 05-12-2008, 07:24 AM
  6. Quick change to date check.
    By Spitfire999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2007, 07:27 PM
  7. [SOLVED] Dupe check over more than one column
    By Wynn in forum Excel General
    Replies: 3
    Last Post: 06-16-2005, 10:05 PM

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