Nested IF and NETWORKDAYS Query

ZachQuack

New Member
Joined
Sep 11, 2015
Messages
1
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.
******
 
Last edited:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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