On 2002-02-24 17:43, Anonymous wrote:
On 2002-02-24 14:04, pilot wrote:
Aladin,
I can't get there from here. It appears Excel will not allow array constants in Conditional Formatting statements. Now that you have a good handle on what I'm trying to do, do you have other ideas on how to get there?
Gee, you succeeded to drag me into this cond format problem of yours. But, I admit, it's an interesting problem.
I added that (in)valid dates table to your workbook. The formulas that follow use that table to color your worksheet (implemented it for just one worksheet; I leave the rest to you).
Note. I didn't look into IML's proposal.
The formula for Condition 1:
=OFFSET(Base,MATCH(IF(LEN($A5),$A5,$A4),MONTHS,0),MATCH(B$4,DAYS,0))="Invalid"
The formula for Condition 2:
=WEEKDAY(OFFSET(Base,MATCH(IF(LEN($A5),$A5,$A4),MONTHS,0),MATCH(B$4,DAYS,0)),2)>5
where Base is the name of A1, MONTHS the name of the range A2:A13, and DAYS the name of the range B1:AF1 of the (in)valid dates table.
I think you'll need a 3rd condition for holidays (I didn't do that, which I also leave to you).
Aladin
PS. Your WB is underway to you.