Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tel Tel is offline
external usenet poster
 
Posts: 39
Default If and AND in Conditional Formatting

Forgive me if I haven't got the title quite right but this is what I'm trying
to achieve.

I'm trying to set up a conditional format that will change the colour to red
if Cell b3 = Yes and Cell b4 = No then Red
If cell b3 = No and cell b4 = yes then red
but if cell b3 = yes and cell b4 = yes then no change.

I'm not completely au fait with IF statements or if they can be used in CF
but any help would be appreciated.

Thanks

Tel
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default If and AND in Conditional Formatting

Hi,

You don't say which cell is to change color so select the cel which can be
B3, B4, Both or another cell and try this

Format|Conditional format|Formula is and enter this

=AND($B$3="Yes",$B$4="No")
Pick Red
Click Add and enter this formula
=AND($B$3="No",$B$4="Yes")
and once agin pick your colour and click OK

Mike

"Tel" wrote:

Forgive me if I haven't got the title quite right but this is what I'm trying
to achieve.

I'm trying to set up a conditional format that will change the colour to red
if Cell b3 = Yes and Cell b4 = No then Red
If cell b3 = No and cell b4 = yes then red
but if cell b3 = yes and cell b4 = yes then no change.

I'm not completely au fait with IF statements or if they can be used in CF
but any help would be appreciated.

Thanks

Tel

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default If and AND in Conditional Formatting

Which cells do you want to change? If both, then highlight both, click
on Format | Conditional Formatting and then in the pop-up select
Formula Is rather than Cell Value Is in the first box, and then enter
this formula in the next box:

=$B$3<$B$4

Then click the Format button, and select the colour you want (Red).
You can also choose Bold, and maybe change the background colour
(Patterns tab). Click OK twice to exit the dialogue box.

Hope this helps.

Pete

On Apr 15, 5:08*pm, Tel wrote:
Forgive me if I haven't got the title quite right but this is what I'm trying
to achieve.

I'm trying to set up a conditional format that will change the colour to red
if Cell b3 = Yes and Cell b4 = No then Red
If cell b3 = No and cell b4 = yes then red
but if cell b3 = yes and cell b4 = yes then no change.

I'm not completely au fait with IF statements or if they can be used in CF
but any help would be appreciated.

Thanks

Tel


  #4   Report Post  
Posted to microsoft.public.excel.misc
Tel Tel is offline
external usenet poster
 
Posts: 39
Default If and AND in Conditional Formatting

Thanks Guys - it's so simple when you know how. I know the $ makes the
reference absolute, as I intend inserting lines but not columns in the table
(alot of them) would I be right in saying that I would us "B$3 and B$4" in
the formula instead of "$B$3 AND $B$4"?

Tel

"Tel" wrote:

Forgive me if I haven't got the title quite right but this is what I'm trying
to achieve.

I'm trying to set up a conditional format that will change the colour to red
if Cell b3 = Yes and Cell b4 = No then Red
If cell b3 = No and cell b4 = yes then red
but if cell b3 = yes and cell b4 = yes then no change.

I'm not completely au fait with IF statements or if they can be used in CF
but any help would be appreciated.

Thanks

Tel

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM
conditional formatting Mike1927 Excel Worksheet Functions 1 August 9th 05 10:29 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"