Smidge1990
New Member
- Joined
- Jul 6, 2020
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Good evening all I am looking for advice of a absence tracker I am working on the issue is that the spreadsheet automatically pulls through and greys out weekends. However although this is needed i am trying to insert a line into the formula that picks up if someone is "On Call" which I would like to override the weekend. Here is the formula so far
=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.
=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.