Share via

Conditional Formatting - with exceptions

Anonymous
2018-09-06T01:18:03+00:00
Rohn Winder Todd Smith Jones Paul TOTAL
9/1/2018 D M M D X X 4
9/2/2018 M M D D X A 5
9/3/2018 A A X D A D 5
9/4/2018 L X X D A M 4

I need to highlight the duplicates for each day, BUT, I cannot include the "X" as duplicate. 

In the table above, on 9/1/18, I need the two D's and the two M's highlighted, but I cannot have the two X's highlighted.  Is there a way to do conditional formatting (show duplicates) without including ALL of the duplicates?  For further explanation, on the date of 9/4/18 in this example, I would not have anything highlighted .

I'm using Excel 2013--THANKS!!!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2018-09-06T01:33:28+00:00

Hi Jan,

Rohn Winder Todd Smith Jones Paul TOTAL
9/1/2018 D M M D X X 4
9/2/2018 M M D D X A 5
9/3/2018 A A X D A D 5
9/4/2018 L X X D A M 4

I need to highlight the duplicates for each day, BUT, I cannot include the "X" as duplicate. 

In the table above, on 9/1/18, I need the two D's and the two M's highlighted, but I cannot have the two X's highlighted.  Is there a way to do conditional formatting (show duplicates) without including ALL of the duplicates?  For further explanation, on the date of 9/4/18 in this example, I would not have anything highlighted .

I'm using Excel 2013--THANKS!!!

Select the range B2:Hn and apply conditional formatting using the CF formula:

=AND(B2<>"X", COUNTIF($B2:$H3,B2)>1)

   

===

Regards,

Norman

Was this answer helpful?

8 people found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-09-06T03:44:19+00:00

    Hi Jan,

    This works PERFECTLY!  Thank you SO much!

    You are most welcome! Thank you for your kind feedback.

    ===

    Regards,

    Norman

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-09-06T02:33:47+00:00

    This works PERFECTLY!  Thank you SO much!

    Was this answer helpful?

    0 comments No comments