Conditional Format based on range

G

Guest

Hi,
Is there a formula I can use in CF to change the format of a cell if the
value is within a specified range? For example, if the value in B1 matches a
value in A1:A20 then I want the format to change.

Thanks in advance.
Dave
 
B

Biff

Hi!

Try this:

Select cell B1
Goto Format>Conditional Formatting
Formula Is: =COUNTIF(A$1:A$20,B1)
Click the Format button
Select the desired style(s)
OK out

Biff
 
G

Guest

Thanks Biff,
That's much more elegant than the =OR(... function I had in there.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top