Absence tracker including weekends but need a line of formula that overrides weekend when someone is "On Call"

Smidge1990

New Member
Joined
Jul 6, 2020
Messages
3
Office Version
  1. 365
Platform
  1. 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.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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.
Further to the above the last line of the formula pulls through information regarding leave types using an Index table. What I am after is one result to override the weekend.
 
Upvote 0

Forum statistics

Threads
1,215,554
Messages
6,125,487
Members
449,233
Latest member
Deardevil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top