PC Review


Reply
Thread Tools Rate Thread

Conditional formatting: how to use OR for names?

 
 
ke
Guest
Posts: n/a
 
      22nd Dec 2005
Hello,

There are several names that appear as repeated entries in my
worksheet, and I'd like each name to be color-coded, so that cells
containing "Joe" are shaded green, cells containing "Frank" are shaded
blue, etc.

I can use conditional formatting to find all cells equal to "Joe" and
shade them green. But what if I want to use green shading for "Joe" OR
"Susan", blue for "Frank" OR "Ann", etc? How do I enter the OR
condition in the window of the Format > Conditional Formatting dialog
box? The following didn't work,
=OR("Joe", "Susan")

I am up against the 3-condition limit, so entering individual
conditions for each name won't work.

Thanks
Kate

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      23rd Dec 2005
You need to use the cell reference

=OR(A2="Joe",A2="Susan")

where A2 is the active cell.

You will also need to change condition 1 to Formula Is, as with 2 and 3

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ke" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> There are several names that appear as repeated entries in my
> worksheet, and I'd like each name to be color-coded, so that cells
> containing "Joe" are shaded green, cells containing "Frank" are shaded
> blue, etc.
>
> I can use conditional formatting to find all cells equal to "Joe" and
> shade them green. But what if I want to use green shading for "Joe" OR
> "Susan", blue for "Frank" OR "Ann", etc? How do I enter the OR
> condition in the window of the Format > Conditional Formatting dialog
> box? The following didn't work,
> =OR("Joe", "Susan")
>
> I am up against the 3-condition limit, so entering individual
> conditions for each name won't work.
>
> Thanks
> Kate
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
defined names in conditional-formatting don't work michelratipho@mail.com Microsoft Excel Programming 5 2nd Dec 2007 06:49 PM
Formula for Matching Names and Conditional Formatting! =?Utf-8?B?RGFuIHRoZSBNYW4=?= Microsoft Excel Worksheet Functions 6 21st Jul 2007 11:14 PM
Conditional Formatting No Longer Conditional in 2007 Beta =?Utf-8?B?Q2FjdHVhci1Oby1KdXRzdQ==?= Microsoft Excel Crashes 0 17th Nov 2006 10:01 PM
using conditional formatting to mark repeated names in list? =?Utf-8?B?TWFuc3VyZSBNb3JnYW4=?= Microsoft Excel Misc 3 2nd Jun 2006 01:06 PM
How do I do a complex conditional in a conditional formatting formula Ray Stevens Microsoft Excel Discussion 7 12th Mar 2006 10:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 PM.