Conditional Formatting help

J

JimMay

Was trying to enter in Conditional Formatting the following Using the
Formula Is: << c/f's perhaps don't take arrays - which In my case are
Holidays during the year>>



=if(Date($C$2,D$3,$C6)={$S$3,$S$4,$S$5,$S$6,$S$7,$S$8},True)



Is there a work-around -- I wish to conditionally format the Dates
listed in S3:S8.



Thanks, in advance
 
G

Guest

This is a bit longer than the one you have, but it does the trick
=OR(DATE($C$2,D$3,$C6)=$S$3,DATE($C$2,D$3,$C6)=$S$4,DATE($C$2,D$3,$C6)=$S$5,DATE($C$2,D$3,$C6)=$S$6,DATE($C$2,D$3,$C6)=$S$7,DATE($C$2,D$3,$C6)=$S$8)

Hope this helps,
Miguel.
 
D

Dave Peterson

If you want to format the cells in S3:S8, select those cells and with S3 the
activecell:

Format|condional Formatting
Cell value is: Equal to: =DATE($C$2,$D$3,$C$6)

====
If you wanted to format a different cell if that combination of cells (c2,d3,c6)
matched the dates listed in S3:S8, you could use a formula like:

=MATCH(DATE($C$2,D$3,$C6),$S$3:$S$8,0)

If there is no match, this formula evaluates to an error--and CF treats that as
false. If there is a match, then this formula evaluates to a number--and CF
treats that as True.
 
G

Guest

Maybe something like this:

Select S3:S9, with S3 as the active cell
<format><conditional formatting>
Formula is: =(S3=DATE($C$2,$D$3,$C$6))
Click the [format] button and set the formats
Click the [OK] buttons

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top