Conditional formatting "text contains"

Solved
Hello,

I have several product references in my file, and the goal is that each time a reference is written, the cell colors according to the corresponding color (each reference has a different color).

However, I have the following problem: I have two similar references, one that starts with the same beginning as the other:
- Z101
- Z101N

The color of Z101 automatically applies to Z101N, and I can't differentiate them.
Do you have a solution that would block part of the text or anything else?

Thank you in advance,

Elise

1 answer

  • Votes
  • Date
  • Descending date
  1. Contributor
    Hello

    MFC rules for a text column starting at A1:

    =COUNTIF(A1; "*Z101N*")

    and the following rule:

    =COUNTIF(A1; "*Z101*")

    Note, make sure to place the rules in this order using the up arrows at the top of the MFC, first Z101N and next Z101

    Best regards

    1. Thank you very much!

      Simply putting them in the right order was enough, I hadn't thought of that.

      Have a good day!
    2. Contributor
      No problem
      I consider the issue resolved
      safe travels
      best regards