Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default AND and OR in Conditional Formatting

Can AND and OR be used in the formula of a conditional formatting?

Cell E3 contains a date. I have set the E3 conditional formatting as follows:

CF1 formula is =+E3="" format cell with black font, white cell color
CF2 formula is =E3<=TODAY() format cell with yellow font, red cell color
CF3 formula is =E3TODAY() format cell with black font, green cell color

I would like CF1 formula to be =+E3="" OR D3<"" format cell with black
font, white cell color, but I get a syntax error message.

Is there other syntax I should use, or is this not possible?

TIA
David R.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default AND and OR in Conditional Formatting

One way:

CF1: =OR(E3="",D3<"")

Note that your "+" is superfluous in XL. It's a Lotus-ism.


In article ,
Compass Rose wrote:

Can AND and OR be used in the formula of a conditional formatting?

Cell E3 contains a date. I have set the E3 conditional formatting as follows:

CF1 formula is =+E3="" format cell with black font, white cell color
CF2 formula is =E3<=TODAY() format cell with yellow font, red cell color
CF3 formula is =E3TODAY() format cell with black font, green cell color

I would like CF1 formula to be =+E3="" OR D3<"" format cell with black
font, white cell color, but I get a syntax error message.

Is there other syntax I should use, or is this not possible?

TIA
David R.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default AND and OR in Conditional Formatting

Quite simple

=OR(E3="",D3<"")

AND is used in the same way.

BTW, there is no need for a + in =+E3, =E3 is sufficient.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Compass Rose" wrote in message
...
Can AND and OR be used in the formula of a conditional formatting?

Cell E3 contains a date. I have set the E3 conditional formatting as

follows:

CF1 formula is =+E3="" format cell with black font, white cell color
CF2 formula is =E3<=TODAY() format cell with yellow font, red cell color
CF3 formula is =E3TODAY() format cell with black font, green cell color

I would like CF1 formula to be =+E3="" OR D3<"" format cell with black
font, white cell color, but I get a syntax error message.

Is there other syntax I should use, or is this not possible?

TIA
David R.



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
How can I convert conditional formatting into explicit formatting? Patrick Harris Excel Discussion (Misc queries) 0 April 9th 09 12:00 AM
Formatting Conditional Formatting Icon Sets The Rook[_2_] Excel Discussion (Misc queries) 3 March 7th 09 08:48 PM
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 02:36 AM.

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

About Us

"It's about Microsoft Excel"