Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Format Against an Array Set 1

Status
Not open for further replies.

gall3on

Technical User
Mar 15, 2007
35
US
Hi,

I'm trying to conditionally format a column of text cells where if the value belongs to a named range, it will highlight the cell.

Here's the example:

Column to Format
Dog
Catfish
Elephant
Goldfish
Betta Fish
Tiger

Mammals: Dog, Elephant, Tiger

So if the values under the column to format are found in Mammals, I want them to get highlighted.

Is this possible? Would this have to be done through VBA? How can this be achieved (VBA or not)?
 


Hi,

Put your mammals in a list and Name the Range, Mammals

In CF, Formula is: =Match(A1,Mammals,0)>0 assuming that A1 is the FIRST cell reference in the CF range.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks a bunch! It's been driving me crazy all day! Thank you Thank you Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top