• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional Formatting

Jeff Bedel

New Member
If anyone could offer some insight, I'd be very grateful! I have two calendars on the attached spread sheet. I'm trying to make the bottom calendar conditionally formatted to where the "Points" or "red font cell" drop off after 1 year (365 days) from the current day (today()). I've tried a variety of formulas. The current formula for the conditional format is :
=(MONTH(H43)=MONTH($C43))*(COUNTIFS(lstSdates,"<="&TODAY()-365))*(COUNTIFS(lstEmpNames,valSelEmployee2,lstSdates,"<="&H43,lstEDates,">="&H43,lstPoint4,">0")>0)

I've tried inserting lstSdates,"<="&Today()-365 in various places
I've tried inserting lstSdates,"<="&Edate(Today(),-12) in various places
I cannot seem to get it right. Can anyone offer any assistance on this? Pretty please :)
 

Attachments

  • Employee Attendance 3.1.xlsx
    45.5 KB · Views: 10
Can you clarify a bit?

Do you want to apply CF for Red Font only if date falls within today-365 days and point > 0?
 
CF formula would be.

=(MONTH(H43)=MONTH($C43))*(COUNTIFS(lstEmpNames,valSelEmployee2,lstSdates,"<="&H43,lstEDates,">="&H43,lstPoint4,">0")>0)*(H43>=Today()-365)
 
Back
Top