I've spent quite some time trying to figure this out, but can't - seeking assistance from those with far better skills than I.
I am trying to calculate the number of days between two dates (A2 & B2) excluding: weekends, holidays (by state) as well as for a ticket received before or after 1PM. For example in April there were 5 public holidays in the state of ACT and NSW of which 3 of them were business days.
SLA Calculation - Service request received before 1pm (e.g. Monday), all parts are in stock then Next Business Day would equal to the Technician being onsite the following business working day (e.g. Tuesday) Where the service request is received after 1pm (e.g. Monday) then Next Business Daywould allow an additional business day (e.g. Wednesday).
I know how to calculate days between two dates and exclude a range of holidays, but not by state, and definitely not by taking into considering a time boundary as well. Please help!
[TABLE="class: grid, width: 4"]
<tbody>[TR]
[TD]Log Time/Date[/TD]
[TD]Onsite Date[/TD]
[TD]Log to Onsite (Days) < Holidays & Time Boundaries[/TD]
[TD][/TD]
[TD]State[/TD]
[TD]Holiday[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]18-Apr-19 2:56:00 PM[/TD]
[TD]24-Apr-19[/TD]
[TD]FORMULA HERE[/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD]Good Friday[/TD]
[TD]19/04/19[/TD]
[/TR]
[TR]
[TD]18-Apr-19 8:22:00 AM[/TD]
[TD]23-Apr-19[/TD]
[TD]FORMULA HERE[/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD][TABLE="width: 172"]
<tbody>[TR]
[TD="class: xl70, width: 172"]Day following Good Friday[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 75"]
<tbody>[TR]
[TD="align: right"]20/04/19[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD][TABLE="width: 172"]
<tbody>[TR]
[TD="class: xl70, width: 172"]Easter Sunday[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD]Easter Monday[/TD]
[TD]22/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD]ANZAC Day[/TD]
[TD]25/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]NSW[/TD]
[TD]Good Friday[/TD]
[TD]19/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]NSW[/TD]
[TD]Day following Good Friday[/TD]
[TD]20/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]NSW[/TD]
[TD]Easter Sunday[/TD]
[TD]21/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]NSW[/TD]
[TD]Easter Monday[/TD]
[TD]22/04/19[/TD]
[/TR]
</tbody>[/TABLE]
Thank you in advance.
******
I am trying to calculate the number of days between two dates (A2 & B2) excluding: weekends, holidays (by state) as well as for a ticket received before or after 1PM. For example in April there were 5 public holidays in the state of ACT and NSW of which 3 of them were business days.
SLA Calculation - Service request received before 1pm (e.g. Monday), all parts are in stock then Next Business Day would equal to the Technician being onsite the following business working day (e.g. Tuesday) Where the service request is received after 1pm (e.g. Monday) then Next Business Daywould allow an additional business day (e.g. Wednesday).
I know how to calculate days between two dates and exclude a range of holidays, but not by state, and definitely not by taking into considering a time boundary as well. Please help!
[TABLE="class: grid, width: 4"]
<tbody>[TR]
[TD]Log Time/Date[/TD]
[TD]Onsite Date[/TD]
[TD]Log to Onsite (Days) < Holidays & Time Boundaries[/TD]
[TD][/TD]
[TD]State[/TD]
[TD]Holiday[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]18-Apr-19 2:56:00 PM[/TD]
[TD]24-Apr-19[/TD]
[TD]FORMULA HERE[/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD]Good Friday[/TD]
[TD]19/04/19[/TD]
[/TR]
[TR]
[TD]18-Apr-19 8:22:00 AM[/TD]
[TD]23-Apr-19[/TD]
[TD]FORMULA HERE[/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD][TABLE="width: 172"]
<tbody>[TR]
[TD="class: xl70, width: 172"]Day following Good Friday[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 75"]
<tbody>[TR]
[TD="align: right"]20/04/19[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD][TABLE="width: 172"]
<tbody>[TR]
[TD="class: xl70, width: 172"]Easter Sunday[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD]Easter Monday[/TD]
[TD]22/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ACT[/TD]
[TD]ANZAC Day[/TD]
[TD]25/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]NSW[/TD]
[TD]Good Friday[/TD]
[TD]19/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]NSW[/TD]
[TD]Day following Good Friday[/TD]
[TD]20/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]NSW[/TD]
[TD]Easter Sunday[/TD]
[TD]21/04/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]NSW[/TD]
[TD]Easter Monday[/TD]
[TD]22/04/19[/TD]
[/TR]
</tbody>[/TABLE]
Thank you in advance.
******
Last edited: