+ Reply to Thread
Results 1 to 5 of 5

Is it possible to highlight the every second duplicates

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Is it possible to highlight the every second duplicates

    hello,

    i have a data in range A6:B500
    I want to highlight duplicate with one color only but highlight every second dup

    thanx

    Capture.JPG
    Attached Files Attached Files
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Is it possible to highlight the every second duplicates

    Hi Haroon,

    See if the attached file helps you. The logic is, finding the number of occurrences of a particular value and use conditional formatting.

    Thanks
    Elayaz
    Attached Files Attached Files

  3. #3
    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: Is it possible to highlight the every second duplicates

    Hello HaroonSid,

    This macro will leave only the duplicates visible on the worksheet. The first group will be yellow, the second group white, the third group will be yellow and the fourth group white, etc. All unique rows will be hidden.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    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!)

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Is it possible to highlight the every second duplicates

    Thank you leith Ross
    its working perfectly

    and elayaz you too

    actually i need macro so i will use macro instead of conditional formatting

  5. #5
    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: Is it possible to highlight the every second duplicates

    Hello HaroonSid,

    You're welcome. Glad I could help.

+ 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] Highlight Duplicates
    By markusvirus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-29-2015, 09:42 AM
  2. Highlight Duplicates in Red
    By trevor2524 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2013, 08:50 PM
  3. highlight duplicates
    By dulitul19 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-05-2013, 06:34 AM
  4. Highlight Duplicates
    By bopsgtir in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2012, 10:17 AM
  5. Highlight duplicates if col A and B are the same but not col C
    By Hond70 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2011, 05:01 AM
  6. Macro to check for duplicates and highlight duplicates
    By obc1126 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-23-2008, 09:55 PM
  7. Highlight duplicates
    By SITCFanTN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2006, 06:25 AM

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