I am working on an employee attendance tracking sheet, and I have conditional formatting rules that change the color of a cell in the calendar depending on the type of leave used. The challenge I have is when a user uses more than one leave type on the same day. The conditional formatting rule applied is based on the last entry on the data sheet. What I want to happen is if there is more than one leave type used on the same day, change the cell to Black with white bold text.
On my data sheet, I added a helper column (Multiple Types), and named the range (lstDataMType) to identify the duplicates in question. I referenced this in my formula but it does not work as I expected. I have attached the sheet.
The formula I use for the data validation formula is:
=(MONTH(H9)=MONTH($C9))*(SUMPRODUCT((lstDataName=valSelectName)*(YEAR(lstDataDate)=valSelectYear)*(lstDataDate<=H9)*(lstDataDate>=H9)*(lstDataMType=1))>0)
A solution that does not use the helper column would be ideal.
Thanks
On my data sheet, I added a helper column (Multiple Types), and named the range (lstDataMType) to identify the duplicates in question. I referenced this in my formula but it does not work as I expected. I have attached the sheet.
The formula I use for the data validation formula is:
=(MONTH(H9)=MONTH($C9))*(SUMPRODUCT((lstDataName=valSelectName)*(YEAR(lstDataDate)=valSelectYear)*(lstDataDate<=H9)*(lstDataDate>=H9)*(lstDataMType=1))>0)
A solution that does not use the helper column would be ideal.
Thanks