Two points before going further. Your DV list was missing. I made one in column CD. Column CD is also part of a lookup table to determine the numbers of months for monthly, bimonthly, quarterly etc.
There is a duplicate range below the report range. This is my "cheat sheet" for working out the CF formulas. You can leave it if you like or refer to it if it helps you understand how it works and relates to the report range.
For the dark blue conditions find this formula in CF manager.
Formula:
=IF(G$1>=EOMONTH($B2,0),AND(MOD(DATEDIF(EOMONTH($B2,0),G$1,"m"),INDEX($CE$1:$CE$5,
MATCH($D2,$CD$1:$CD$5,0)))+1=INDEX($CE$1:$CE$5,MATCH($D2,$CD$1:$CD$5,0)),
DATEDIF(EOMONTH($B2,0)+1,G$1,"m")<=$C2*12))
and for the light blue/"received" conditions this formula.
Formula:
=AND(IF(G$1>=EOMONTH($B2,0),AND(MOD(DATEDIF(EOMONTH($B2,0),G$1,"m"),
INDEX($CE$1:$CE$5,MATCH($D2,$CD$1:$CD$5,0)))+1=INDEX($CE$1:$CE$5,MATCH($D2,$CD$1:$CD$5,0)),
DATEDIF(EOMONTH($B2,0)+1,G$1,"m")<=$C2*12)),G2="received")
Does this do what you want?
Bookmarks