NETWORKDAYS Function

BCS2

Board Regular
Joined
Dec 8, 2003
Messages
67
I am trying to determine the elapsed time between a start and dtop time. I am doing so now by subtracting one from the other. Which works fine until I get to a weekend.

I am assuming this function counts up until Friday night @ midnight and roll into Monday. The problem I have run into is that the results are displayed as whole days. I would like to display as [H]:mm.

An example of a test I am using is below.

Thanks All.
Estimate Tracking Example.xls
ABCD
11/9/0411:00AM1/12/0410:49AM2.00
2
31/6/049:001/6/0411:001.00
Sheet1
 
Are you looking to get the number of days or hours?

If you want total weekday hours then format as [h]:mm

BTW you can simplify formula to:

=NETWORKDAYS(A1,B1)+MOD(B1,1)-MOD(A1,1)-1
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Then use the formula I gave....

=NETWORKDAYS(A1,B1)+MOD(B1,1)-MOD(A1,1)-1

and format as dd:hh:mm

although this doesn't work for results over 31 days, in which case you could try

=NETWORKDAYS(A1,B1)-1-(MOD(A1,1)>MOD(B1,1))&" hours"&TEXT(MOD(B1,1)-MOD(A1,1)+(MOD(A1,1)>MOD(B1,1))," hh:mm")
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,162
Members
449,295
Latest member
DSBerry

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