+ Reply to Thread
Results 1 to 3 of 3

Highlight 18 Digit cells in Column A that occur in "triplicate" (not using Cond/Form)

  1. #1
    Registered User
    Join Date
    10-16-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    5

    Highlight 18 Digit cells in Column A that occur in "triplicate" (not using Cond/Form)

    I have searched everywhere for my specific issue and get close but can't quite find a reasonable solution. My goal is to highlight in (RED=3) all occurrences of an 18 digit number appearing 3 or more times in Column A2:LastEntry.

    Here's the catch - I have almost 200,000 records and conditional formatting cannot take the "volume" as it is too slow and locks up the PC.

    The following code works to a certain extent. It will do a very quick highlight of all "Duplicates ONLY" in RED but I cannot get it modified to Just highlight "Triplicates ONLY".

    Please Login or Register  to view this content.


    SAMPLE DATA:

    100394600000004266
    100394600000004266
    100394600000004266

    100394600000004316
    100394600000004316
    100394600000004324
    100394600000004324
    100394600000004837
    100394600000004837
    100394600000004837

    100394600000006352
    100394600000008218
    100394600000008523
    100394600000008523
    100394600000009406


    A VBA Code that will works for me would only FILL color "100394600000004266" & "100394600000004837" RED.

    Id this possible outside of Conditional Formatting? Thank You

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Highlight 18 Digit cells in Column A that occur in "triplicate" (not using Cond/Form)

    Hello mlewand420,

    This macro will highlight triplicate values in red font in column "A". The values do not have have to do not have to be in sequential rows. This macro did 200000 rows in about 3.75 seconds on my machine. Your time may vary.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    10-16-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Highlight 18 Digit cells in Column A that occur in "triplicate" (not using Cond/Form)

    Leith, your code works exactly like I imagined. Thank You!

+ 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