+ Reply to Thread
Results 1 to 9 of 9

Highlighting text thats the same in different colours

  1. #1
    Registered User
    Join Date
    09-27-2009
    Location
    Dublin
    MS-Off Ver
    MS 365
    Posts
    97

    Highlighting text thats the same in different colours

    Is it possible to highlight text which is the same (URLs in this case) in different colours

    I have about 30 URLs in columns B / E / H / K / N

    sometimes the same URL appears in these columns and I'd like to have the cell background change colour so it's easy to see where URLs are the same

    Conditional formatting to highlight duplicates doesn't work as it highlights all URLs in the same colour.

    Thanks.

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Highlighting text thats the same in different colours

    Are the duplicates on the same row or could they be anywhere on the sheet? Do you have a sample workbook you could attach?

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    09-27-2009
    Location
    Dublin
    MS-Off Ver
    MS 365
    Posts
    97

    Re: Highlighting text thats the same in different colours

    the duplicates could be anywhere

    i've attached a sample.

    thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Highlighting text thats the same in different colours

    Can't be done using conditional formatting as far as I know but I could be wrong. The following VBA functions would potentially be helpful but the problem is picking a random colour for each duplicate because they might be quite similar ...

    Please Login or Register  to view this content.
    WBD

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Highlighting text thats the same in different colours

    CF formula applies to B5:N14

    =COUNTIF($B$5:$N$14,B5)=2 fill 1st color

    =COUNTIF($B$5:$N$14,B5)=3 fill 2nd color
    and so on.

  6. #6
    Registered User
    Join Date
    09-27-2009
    Location
    Dublin
    MS-Off Ver
    MS 365
    Posts
    97

    Re: Highlighting text thats the same in different colours

    Quote Originally Posted by Bo_Ry View Post
    CF formula applies to B5:N14

    =COUNTIF($B$5:$N$14,B5)=2 fill 1st color

    =COUNTIF($B$5:$N$14,B5)=3 fill 2nd color
    and so on.

    what CF do you pick ?

  7. #7
    Registered User
    Join Date
    09-27-2009
    Location
    Dublin
    MS-Off Ver
    MS 365
    Posts
    97

    Re: Highlighting text thats the same in different colours

    Quote Originally Posted by WideBoyDixon View Post
    Can't be done using conditional formatting as far as I know but I could be wrong. The following VBA functions would potentially be helpful but the problem is picking a random colour for each duplicate because they might be quite similar ...

    Please Login or Register  to view this content.
    WBD
    Thanks - this worked.

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Highlighting text thats the same in different colours

    Select B5:N14
    Coditional formatting > Manage Rule > New rule > Use a formula
    1 formula for 1 color

  9. #9
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Highlighting text thats the same in different colours

    If you're happy that you have a solution, please mark the thread as SOLVED.

    Thanks,

    WBD

+ 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. Drop down colours with no text
    By benjii19 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2015, 11:06 AM
  2. Hover text against specific colours
    By oye2422 in forum Excel General
    Replies: 1
    Last Post: 09-18-2015, 08:05 AM
  3. [SOLVED] Using VBA to change text colours
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2013, 10:04 AM
  4. Highlighting cells in colours
    By royst in forum Excel General
    Replies: 1
    Last Post: 07-20-2010, 06:05 PM
  5. Highlighting duplicates in different colours
    By wowzers in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-07-2009, 12:24 AM
  6. Trying to append text into a cell with different colours
    By Earl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2008, 05:23 PM
  7. [SOLVED] Excel 2003 font colours and cell colours
    By bretta in forum Excel General
    Replies: 1
    Last Post: 04-16-2005, 11:06 PM

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