Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,090
Default Conditional Formatting - 2 conditions

Excel XP & Win XP
I thought this was easy but it isn't.
I want to apply conditional formatting to D1 so I have D1 selected.
I want 2 conditions to be true before the formatting is applied. They a
(Note that D1 holds a date).
D1 Today()
E1 < "YES"
I tried:
Formula is:
=If(And(D1Today(), E1<"YES"))
Excel adds quotes as:
="If(And(D1Today(), E1<""YES""))"
But the formatting is not applied.
What am I doing wrong? Thanks for your time. Otto


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Conditional Formatting - 2 conditions

Take the extra quotes out. If you put the = in at the beginning of the
formula as you enter it, I think you'll find that CF won't add the extra
quotes.
And you don't want IF.
All you need is =AND(D1TODAY(), E1<"YES")
--
David Biddulph

"Otto Moehrbach" wrote in message
...
Excel XP & Win XP
I thought this was easy but it isn't.
I want to apply conditional formatting to D1 so I have D1 selected.
I want 2 conditions to be true before the formatting is applied. They
a (Note that D1 holds a date).
D1 Today()
E1 < "YES"
I tried:
Formula is:
=If(And(D1Today(), E1<"YES"))
Excel adds quotes as:
="If(And(D1Today(), E1<""YES""))"
But the formatting is not applied.
What am I doing wrong? Thanks for your time. Otto



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,089
Default Conditional Formatting - 2 conditions

Try:

=AND(D1TODAY(), E1<"YES")

Regards

Trevor


"Otto Moehrbach" wrote in message
...
Excel XP & Win XP
I thought this was easy but it isn't.
I want to apply conditional formatting to D1 so I have D1 selected.
I want 2 conditions to be true before the formatting is applied. They
a (Note that D1 holds a date).
D1 Today()
E1 < "YES"
I tried:
Formula is:
=If(And(D1Today(), E1<"YES"))
Excel adds quotes as:
="If(And(D1Today(), E1<""YES""))"
But the formatting is not applied.
What am I doing wrong? Thanks for your time. Otto



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,090
Default Conditional Formatting - 2 conditions

David, Trevor
Thanks for your help. Otto
"Trevor Shuttleworth" wrote in message
...
Try:

=AND(D1TODAY(), E1<"YES")

Regards

Trevor


"Otto Moehrbach" wrote in message
...
Excel XP & Win XP
I thought this was easy but it isn't.
I want to apply conditional formatting to D1 so I have D1 selected.
I want 2 conditions to be true before the formatting is applied. They
a (Note that D1 holds a date).
D1 Today()
E1 < "YES"
I tried:
Formula is:
=If(And(D1Today(), E1<"YES"))
Excel adds quotes as:
="If(And(D1Today(), E1<""YES""))"
But the formatting is not applied.
What am I doing wrong? Thanks for your time. Otto





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
Conditional Formatting with 4 or more conditions Philipp Ehrenstein Excel Worksheet Functions 6 November 27th 06 05:39 PM
Conditional Formatting for more than 3 conditions MMM Excel Worksheet Functions 4 March 9th 06 01:43 AM
I have more than 6 conditions when using conditional formatting? Magda Excel Worksheet Functions 3 March 1st 06 09:15 AM
Conditional formatting with more than 3 conditions. jeffg Excel Worksheet Functions 0 October 5th 05 02:04 PM
more than 3 conditions in conditional formatting - possible? rob curtis Excel Discussion (Misc queries) 11 August 17th 05 04:02 PM


All times are GMT +1. The time now is 03:28 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"