Dr. Demento
Well-known Member
- Joined
- Nov 2, 2010
- Messages
- 618
- Office Version
- 2019
- 2016
- Platform
- Windows
I am attempting to highlight any single letter value that is not listed in a named range, as a form of visual data validation.
I have a list of single letters in col K that go from A-Z but I'm only interested in four of them (C|L|U|M), which I've named as a range. Since I apply this to all of col K (I never know how many entries I'll have), I pair it with the condition that a name is present in col B. Below is my CF formula:
=AND(MATCH($K1|CLUM)=FALSE|ISBLANK($B1)=FALSE)
My issue is that none of the letters that are NOT CLUM do not get highlighted (which is the whole point of this CF).
The named range is unsorted and the list being CF'd are sorted by date, not by col K or B. The named range is four cells, with one capital letter in each (no need to discriminate between capital and lowercase). Additionally, I'm unable to specify [match type], as I get the generic "The formula you typed contains an error." (Don't know what to do with that one!)
I've also tried with unequal success:
=AND(ISNA(MATCH($K1|CLUM))| LEN($B1)>0)
Any enlightenment would be most appreciated.
I have a list of single letters in col K that go from A-Z but I'm only interested in four of them (C|L|U|M), which I've named as a range. Since I apply this to all of col K (I never know how many entries I'll have), I pair it with the condition that a name is present in col B. Below is my CF formula:
=AND(MATCH($K1|CLUM)=FALSE|ISBLANK($B1)=FALSE)
My issue is that none of the letters that are NOT CLUM do not get highlighted (which is the whole point of this CF).
The named range is unsorted and the list being CF'd are sorted by date, not by col K or B. The named range is four cells, with one capital letter in each (no need to discriminate between capital and lowercase). Additionally, I'm unable to specify [match type], as I get the generic "The formula you typed contains an error." (Don't know what to do with that one!)
I've also tried with unequal success:
=AND(ISNA(MATCH($K1|CLUM))| LEN($B1)>0)
Any enlightenment would be most appreciated.