• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional Formatting if Cell matches any string in array.

Hey Forum.

From A5:A100 I have a list of strings. If I type a string into D5 and it doesn't match any string in the array, I want to conditionally format that cell to Red/Bold Text. But for the life of me I cannot work out how to accomplish this.

This is what I'm currently trying:

=COUNTIF(A5:A100,D5) < 1

I'm using Excel 365.

Thank you for the help.
 
Check attached.

Used VLOOKUP formula in another cell to check if the string entered exists or not and then setup a conditional format by checking if entered cell equals the other cell. If it doesn't match then it shows in Red Bold color.
 

Attachments

  • Conditional Format.xlsx
    8.7 KB · Views: 4
You were on right track with COUNTIF, just need to make the lookup range absolute reference I'm guessing.
Formula:
=COUNTIF($A$5:$A$100,D5)=0

In use:
upload_2015-7-9_14-22-39.png
 

Attachments

  • Conditional Format LM.xlsx
    8.2 KB · Views: 4
Thank you both for the fast replies! -- Can't believe after all the tweaking I made to the formula all that was needed was to make it absolute, I'll have to remember that from now on.
 
Back
Top