PC Review


Reply
Thread Tools Rate Thread

Conditional formatting if three conditions are true

 
 
kacperkolodziej@gmail.com
Guest
Posts: n/a
 
      13th Nov 2011
Hi! I have to do conditional formatting in one cell in excel and I've got three conditions:
1. value of this cell mustn't be bigger than 6 and smaller than one
2. value mustn't be equal "nk"
3. value mustn't be equal "zw"
If these three conditions are true, I want to use conditional formatting? Can you tell me how to do it?
 
Reply With Quote
 
 
 
 
joeu2004
Guest
Posts: n/a
 
      13th Nov 2011
"Ron Rosenfeld" <(E-Mail Removed)> wrote:
> On Sun, 13 Nov 2011 06:48:12 -0800 (PST), (E-Mail Removed) wrote:

[....]
>>I've got three conditions:
>>1. value of this cell mustn't be bigger than 6
>> and smaller than one
>>2. value mustn't be equal "nk"
>>3. value mustn't be equal "zw"
>>If these three conditions are true, I want to use
>>conditional formatting? Can you tell me how to do it?

>
> Use a formula for the conditional formatting.
> e.g. with a1 selected, you formula would be:
> =AND(A1<=6,A1>=1,A1<>"nk",A1<>"zw")


Nothing wrong with the formula, but the last two conditions are superfluous.
It is sufficient to write:

=AND(A1<=6,A1>=1)

Note that if A1="nk" or A1="zw", A1<=6 would be false.

I suspect the real mistake in the OP's requirements. I wonder if they are
misstated or misinterpreted. (Although my interpretation is the same as
Ron's.)

Perhaps he means:

=OR(AND(A1<=6,A1>=1),AND(ISTEXT(A1),A1<>"nk",A1<>"zw"))

But is questionable whether ISTEXT(A1) is an intended condition.

PS: The OR() expression is not necessarily the most efficient
implementation.

 
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



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 AM.