+ Reply to Thread
Results 1 to 13 of 13

Conditional Formatting for Duplicates

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    Fa, CA
    MS-Off Ver
    Excel 2013
    Posts
    53

    Conditional Formatting for Duplicates

    Hello,

    I'm trying to come up with conditional formatting for the attached sheet.

    I want it to highlight all cells that contain duplicate numbers as in the number is present in all five days, no less, and is highlighted with a color.

    Then, likely another formula, that will highlight all the numbers that are present (duplicates) in any four of the days, no more no less.

    The same with three days, and two.

    I've been trying to get Countif to work but it is not.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Conditional Formatting for Duplicates

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    01-14-2009
    Location
    Fa, CA
    MS-Off Ver
    Excel 2013
    Posts
    53

    Re: Conditional Formatting for Duplicates

    Thanks protonLeah,

    However I am still getting the same sort of results I have been...

    112 for example exists in all five days.

    Changing the 2 in the formula starting from 1 to 5 one at a time, the only time 112 is highlighted at all is when set to 3 and then only three out of the five occurrences of 112 are highlighted.

    When it is set to 1 two of the five occurrences are highlighted.

    Set to any other number none of 112 is highlighted.

    Maybe I am misunderstanding something.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,547

    Re: Conditional Formatting for Duplicates

    Deleted by Author
    Last edited by JeteMc; 05-29-2015 at 11:11 PM. Reason: Did not contribute to thread

  5. #5
    Registered User
    Join Date
    01-14-2009
    Location
    Fa, CA
    MS-Off Ver
    Excel 2013
    Posts
    53

    Re: Conditional Formatting for Duplicates

    No but thank you. That gets all the duplicates alright.

    The numbers in the sheet refer to a city-wide radio control and monitor system. Am trying to improve communications to the remotes so am identifying the worst to least ones. That is why they need to be color coded differently.

    The worst ones do not communicate on any day (colored red). The next to worst ones do not communicate 4 out of 5 days (colored yellow) and so on.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Conditional Formatting for Duplicates

    Sorry, you need four formulas. The one I posted was just a sample to get you started. They are:
    =countif($a:$e,a1)=2
    =countif($a:$e,a1)=3
    =countif($a:$e,a1)=4
    =countif($a:$e,a1)=5

    You have to set each condition with its own color.

  7. #7
    Registered User
    Join Date
    01-14-2009
    Location
    Fa, CA
    MS-Off Ver
    Excel 2013
    Posts
    53

    Re: Conditional Formatting for Duplicates

    Using 112 as the acid test in this case which exists in all five days and using 5 as the formula value, none of the 112's are highlighted. Highlighting seems almost random.

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: Conditional Formatting for Duplicates

    The workbook I posted is showing 0 views!

  9. #9
    Registered User
    Join Date
    01-14-2009
    Location
    Fa, CA
    MS-Off Ver
    Excel 2013
    Posts
    53

    Re: Conditional Formatting for Duplicates

    I have it downloaded it twice now. Something goes odd with the browser and it doesn't redirect or click to redirect.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,547

    Re: Conditional Formatting for Duplicates

    I was able to download the workbook, it shows cells separated into differing colors just as requested, however even after closing and reopening this thread the count still reads zero views.

  11. #11
    Registered User
    Join Date
    01-14-2009
    Location
    Fa, CA
    MS-Off Ver
    Excel 2013
    Posts
    53

    Re: Conditional Formatting for Duplicates

    Hmm. Ok I will have to check on this. It kept asking me to download it and I did a few times. It asks to download but doesn't redirect. I have recently upgraded the browser I might need to try another one.

  12. #12
    Registered User
    Join Date
    01-14-2009
    Location
    Fa, CA
    MS-Off Ver
    Excel 2013
    Posts
    53

    Re: Conditional Formatting for Duplicates

    Thanks for your time!

  13. #13
    Registered User
    Join Date
    01-14-2009
    Location
    Fa, CA
    MS-Off Ver
    Excel 2013
    Posts
    53

    Re: Conditional Formatting for Duplicates

    Thank you. Something was going wrong when downloading. I finally got it.

    That is beautiful. Very elegant.

+ 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] Three-way Conditional Formatting for Duplicates?
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2011, 05:34 AM
  2. Duplicates Conditional Formatting
    By jayclinton in forum Excel General
    Replies: 4
    Last Post: 12-20-2010, 07:41 PM
  3. Conditional Formatting/Duplicates
    By vba-dev in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-21-2009, 04:19 PM
  4. conditional formatting for duplicates
    By zachg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-04-2007, 04:26 PM
  5. Duplicates through conditional formatting
    By JonPugh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2007, 06:36 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