I am creating an attendance tracking tool based on a template I downloaded from the Microsoft Office Downloads site. The statement I am using as the conditional formatting formula is:
=(MONTH(H9)=MONTH($C9))*(COUNTIFS(lstDataName,valSelectName,lstDataYear,valSelectYear,lstDataDate,"<="&H9,lstDataDate,">="&H9,lstDataReason,"Vacation")>0)
I have a date column in my data sheet (YYYY-MM-DD), and I tried everything I can think of to extract the year from the date for the above formula and nothing works. The statement works exactly as it should with the helper column (lstDataYear) I created, but would prefer to do it in the formula.
I am also having a conditional formatting issue, that I will post a second question for.
Any thoughts? (workbook attached)
=(MONTH(H9)=MONTH($C9))*(COUNTIFS(lstDataName,valSelectName,lstDataYear,valSelectYear,lstDataDate,"<="&H9,lstDataDate,">="&H9,lstDataReason,"Vacation")>0)
I have a date column in my data sheet (YYYY-MM-DD), and I tried everything I can think of to extract the year from the date for the above formula and nothing works. The statement works exactly as it should with the helper column (lstDataYear) I created, but would prefer to do it in the formula.
I am also having a conditional formatting issue, that I will post a second question for.
Any thoughts? (workbook attached)