# 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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

#### 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
1
Views
99
Replies
25
Views
300
Replies
0
Views
30
Replies
8
Views
83
Replies
5
Views
165

1,130,129
Messages
5,640,296
Members
417,135
Latest member
zeusmining

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