+ Reply to Thread
Results 1 to 8 of 8

Highlight duplicate cell values in a row with different color code

  1. #1
    Registered User
    Join Date
    02-21-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    9

    Highlight duplicate cell values in a row with different color code

    Not even sure if it is possible:

    There is a dynamic table (the range may increase or decrease by row or column.
    Under each header, there are values.
    Per row, if there are duplicate values, then the cells should be highlighted by different colors.

    Example: Header 1 and 2 has A and A duplicate for row 2 (should be highlighted with one random color). Again, Header 4 and 5 have C as duplicate so the cells should be colored with a different color.
    Image attached for suggestion.

    Any color is fine as long as all the duplicates/triplicates are highlighted with similar sets of colors by row (NOT BY COLUMN).


    Header1 Header2 Header3 Header4 Header5 Header6 Header7
    A A B C C 1 1
    V B C C 1 2 1
    1 3 C D V 1 Q
    123.jpg


    Thanks a LOT in advance.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,086

    Re: Highlight duplicate cell values in a row with different color code

    See how the macro can do the job
    There is some limits: No more than 10 different duplicate
    No more than 190 cells per row
    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    02-21-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    9

    Re: Highlight duplicate cell values in a row with different color code

    Dear PCI, you are a genius.
    But there is a small problem.
    For example, in row 4 (in attached image), for the "C"s, the call colorsDF.JPG should be same.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,086

    Re: Highlight duplicate cell values in a row with different color code

    Are the values exactly the same ...
    Can you copy and paste the value from B4 to others and see the result
    Can you attach a short excel sample ?

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Highlight duplicate cell values in a row with different color code

    Try
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,086

    Re: Highlight duplicate cell values in a row with different color code

    Yes there was a "bug" .. try next code
    Please Login or Register  to view this content.
    Last edited by PCI; 10-08-2017 at 05:29 AM.

  7. #7
    Registered User
    Join Date
    02-21-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    9

    Re: Highlight duplicate cell values in a row with different color code

    Thank you PCI. Big help.

  8. #8
    Registered User
    Join Date
    02-21-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    9

    Re: Highlight duplicate cell values in a row with different color code

    Thank you jindon.

+ 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 duplicate values in their own row even if values aren't adjacent
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2016, 01:20 PM
  2. Highlight Duplicate Values
    By voniom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2015, 08:48 AM
  3. [SOLVED] Conditional Formatting highlight duplicate values IF cell doesn't start with "XX"
    By deneh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2015, 04:44 AM
  4. Cell color is not changing for duplicate values using VBA
    By kvramana82 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2013, 05:35 AM
  5. Highlight duplicate values
    By abibayley in forum Excel General
    Replies: 3
    Last Post: 04-23-2012, 12:03 PM
  6. Need help on how to highlight duplicate values
    By avadakedava in forum Excel General
    Replies: 3
    Last Post: 04-10-2012, 11:27 AM
  7. Highlight duplicate row values
    By Brian Tam in forum Excel General
    Replies: 5
    Last Post: 08-27-2010, 04:54 PM

Tags for this Thread

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