Ray,
I was right about the Frequency hiding in plain sight. Try out the attached sample file, which contains an excerpt from the 'Actual' sheet. It allows changing of the dates and the frequencies (using VBA) to test the CONDITIONAL FORMATTING.
I added a lookup table (using Excel function VLOOKUP) to account for the various year frequencies. The lookup table uses a NAMED RANGE. There are instructions in the sample file if you are not familiar with NAMED RANGES. The Named range allows you to put the lookup table anywhere you want on any sheet in the workbook, without changing the CONDITIONAL FORMATTING formulas.
My proposed new conditional formatting is:
=DATEDIF(C4,TODAY(),"y") >=VLOOKUP(C$2,MyYearTable,2)
=DATEDIF(C4,TODAY(),"d") >= VLOOKUP(C$2,MyYearTable,3)
The VLOOKUP arguments are:
1. Frequency
2. Lookup Table Named Range
3. Column in the Lookup table
Column 2 is years (red formatting)
Column 3 is days (yellow formatting)
If I don't have what you want correct, I think I am pretty close.
Lewis
Bookmarks