+ Reply to Thread
Results 1 to 7 of 7

Highlight unique values for easy visual purposes

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Highlight unique values for easy visual purposes

    Hi all,

    in my data set, I would like my values to have conditional formatting applied so I can easily identify duplicate sequences.


    So in my example.., B3 - TO G12

    I want all the unique values to be highlighted in any unique colours.

    Example: 10001 can be in green 100013 can be be in blue, 10002 can be in light pink etc.

    Is there a way to achieve this please?

    thank you!
    Attached Files Attached Files
    Thanks,

    R.



  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Highlight unique values for easy visual purposes

    Please explain in more detail: what constitutes 'unique' here? I ask becuse 10001 occurs multiple times.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Highlight unique values for easy visual purposes

    Every instance of 10001 to be colour A, every instance of 10002 to be colour B, etc??? If so, that'll need VBA.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Highlight unique values for easy visual purposes

    If you want each value to have its own colour, then you would need a new CF rule for each one. In your sample file you have 32 different values (excluding the top row), so that would mean 32 different rules to control the colours. I wouldn't fancy setting that up.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Highlight unique values for easy visual purposes

    Hi all,

    Thank you for your replies

    I think Glenn got what I was after

    Every instance of 10001 to be a colour
    Every instance of 10002 to be a colour

    but I would want to apply the formatting/rule/process to other spreadsheets so I`m unsure if this is possible? sometimes I might apply the process to words in a list (same format as the way the numbers are)

    Thank you

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Highlight unique values for easy visual purposes

    It doesn't matter if they're text or numbers.... without using VBA you would need to set up (as Pete said) one CF formula for EACH unique value. In your sample, that's 32 formulae. It's not really practical, is it??

  7. #7
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Highlight unique values for easy visual purposes

    ok no worries, thank you guys. I appreciate your guidance on how I need to go about achieving what I need :-)

+ 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 active cell or range for visiblity purposes.
    By redsab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2020, 12:15 PM
  2. Easy way to count # of unique values (text) in a range?
    By trstew in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-29-2017, 02:14 PM
  3. [SOLVED] highlight unique values between two workbooks
    By MarkFltc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-10-2017, 01:49 PM
  4. Need to compare two columns and highlight unique values.
    By @jerry in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-06-2015, 03:20 AM
  5. Visual Basic for Access Report- form load no unique values in text boxes
    By LMcKee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2015, 09:28 AM
  6. Replies: 12
    Last Post: 04-11-2014, 07:18 PM
  7. Macro to find Unique Values and Highlight them?
    By donnydorko in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-06-2010, 05:51 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