0

I have the following table where people are in either group 1 or 2 or 3.

enter image description here

What I want is to format (highlight) x differently when one person is in more than one group on one day. Is there any possibility to do this neatly without vba based on formulae only? If vba I do not have a nice idea how to approach this without simply browsing the entire table. How should I approach that?

0

1 Answer 1

1

To achieve this with the help of the conditional formatting, follow these steps...

  1. Select the whole columns B:C.
  2. Home --> Conditional Formatting --> New Rule --> Use a formula to determine which cells to format --> in the box below "Format values where this formula is true", paste the formula given below
  3. Click on Format --> Font --> Choose the Bold italic and set the font color to red or as per your choice --> OK --> OK to finish.

Formula for conditional formatting:

=AND(B1="x",COUNTIFS($A:$A,$A1,B:B,"x")>1)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.