# NETWORK DAYS BETWEEN 2 DATES AND TIMES

#### LaurenHancy

##### Board Regular
Hello you marvelous lot

I have a question regarding calculating business days/hours between 2 dates/times:

Column A = dd/mm/yyyy hh:mm:ss
Column B = Today()

Business hours are 09:00 - 17:00, please may you advise a formula which will count any times after 17:00 to be counted as the next business day.

For Example -1. 01/02/2021 16:50:00 = Need to work out number of NETWORKDAYS with todays date 01/03/2021
2. 01/02/2021 17:02:00 =This will be classed as the next working day as time over 17:00. Work out number of NETWORKDAYS with todays date

Thank you so much for your help.

### Excel Facts

Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

#### steve the fish

##### Well-known Member
Like this?

=NETWORKDAYS(A1+(MOD(A1,1)>TIME(17,0,0)),B1)

#### jasonb75

##### Well-known Member
Or

=NETWORKDAYS(A1+"06:59:59",B1)

#### LaurenHancy

##### Board Regular
Like this?

=NETWORKDAYS(A1+(MOD(A1,1)>TIME(17,0,0))
Hi Steve,

This has worked perfect. Do you think there is a way to also add in "holidays" so it deducts a day if a holiday has passed from date in G to today?

#### steve the fish

##### Well-known Member
Sure its just a normal NETWORKDAYS formula so has an optional 3rd argument of holidays. eg

=NETWORKDAYS(A1+(MOD(A1,1)>TIME(17,0,0)),B1,holidays)

where holidays is a named range containing your holiday dates.

Replies
8
Views
76
Replies
5
Views
141
Replies
1
Views
136
Replies
1
Views
176
Replies
5
Views
81

1,128,107
Messages
5,628,731
Members
416,333
Latest member
Time2Learn

### 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.

### Which adblocker are you using?

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

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