+ Reply to Thread
Results 1 to 13 of 13

highlight duplicates

  1. #1
    Registered User
    Join Date
    01-26-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    highlight duplicates

    I ve got this code.


    Please Login or Register  to view this content.
    Hey,


    I want to highlight the first unique values in red and the duplicates of it in bold. Currently I highlight all duplicates. What should I change? Thanks
    Last edited by arlu1201; 03-05-2013 at 05:25 AM. Reason: Code tags not php tags.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: highlight duplicates

    Please add code tags

  3. #3
    Registered User
    Join Date
    01-26-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: highlight duplicates

    any ideas?

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: highlight duplicates

    You want this to happen in columns B to E or only one specific column?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    01-26-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: highlight duplicates

    I ve got a table which starts from B5 do E30. So the respective columns in the table are the columns from B to E.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: highlight duplicates

    Will it always be one pair of duplicates or are there chances of having more than 1 duplicates?

    Maybe you can attach a sample sheet to make it clear.

  7. #7
    Registered User
    Join Date
    01-26-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: highlight duplicates

    There is a chance of having more than one duplicate. I want the first value to be colored in red and the duplicates (no matter how many) should be in bold. That's it. The code I ve got colors all duplicates.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: highlight duplicates

    Do you have a sample file that you can upload?

  9. #9
    Registered User
    Join Date
    01-26-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: highlight duplicates

    Unfortunately, currently that's not possible. Its not that difficult , though, to visualize what I want and create a simple database to test..

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: highlight duplicates

    I can do that, with no issues.

    But sometimes it happens that the code i provide works on my file but not on yours.

    Anyways, i will provide the code here shortly. Try it and let me know.

  11. #11
    Registered User
    Join Date
    01-26-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: highlight duplicates

    Sure, thanks a lot!

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: highlight duplicates

    Try this code
    Please Login or Register  to view this content.

  13. #13
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: highlight duplicates

    Hi dulitu19,

    Post back re how this goes:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ 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