NETWORK DAYS BETWEEN 2 DATES AND TIMES

LaurenHancy

Board Regular
Joined
Aug 5, 2010
Messages
174
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
Joined
Oct 20, 2009
Messages
8,402
Office Version
  1. 365
Platform
  1. Windows
Like this?

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

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,667
Office Version
  1. 365
Platform
  1. Windows
Or

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

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,402
Office Version
  1. 365
Platform
  1. Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
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.
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
Top