Prabhu_Churi
New Member
- Joined
- Oct 2, 2022
- Messages
- 2
- Office Version
- 2016
- Platform
- Windows
=IF($B9="","",IF(D$8="","NA", IF(@INDEX(T_EMP[START DATE],ROW(B9)-ROW($B$8))>D$8,"NE", IF(AND(@INDEX(T_EMP[END DATE],ROW(B9)-ROW($B$8))>0,@INDEX(T_EMP[END DATE],ROW(B9)-ROW($B$8))0,"HOL", IF(@INDEX(L_WKNDS,WEEKDAY(D$8)),"WKND", IFERROR(@INDEX(TableLeave[LEAVE TYPE],SUMPRODUCT(--(TableLeave[EMPLOYEE NAME]=$B9),--(TableLeave[START DATE]<=D$8),--(TableLeave[END DATE]>=D$8),ROW(TableLeave[LEAVE TYPE]))-@ROW(TableLeave[#Headers])),"Work") )))))) If anyone thinks they may be able to help please let me know.