Exact Number of Weekend & Weekday Days (or hours) between Two Dates

jaek99

New Member
Joined
May 31, 2011
Messages
3
I'm looking to calculate the number of weekdays and weekend days between two dates that include a time stamp.

I've used this formula:
NETWORKDAYS(I8,J8)-1+MOD(J8,1)-MOD(I8,1)

And then subtracted from the total time difference (date/time start - date/time end) to get at the weekend days. However, the networkdays only works when the start date is not a weekend day.

Any thoughts? Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I'm looking to calculate the number of weekdays and weekend days between two dates that include a time stamp.

I've used this formula:
NETWORKDAYS(I8,J8)-1+MOD(J8,1)-MOD(I8,1)

And then subtracted from the total time difference (date/time start - date/time end) to get at the weekend days. However, the networkdays only works when the start date is not a weekend day.

Any thoughts? Thanks
How about posting a few examples and telling us what results you expect.
 
Upvote 0
Start Time:
2/3/2011 12:00:00 PM (Thursday)

End Time:
2/10/2011 8:00:00 AM (Thursday)

Using my method mentioned in my first post, I return correctly 116 Weekday Hours and 48 Weekend Hours.


The following example doesn't work:

Start Time:
8/14/2010 9:30:00 AM (Saturday)

End Time:
8/16/2010 8:00:00 AM (Monday)

The networkday formula returns a negative value
 
Upvote 0
Hello jaek99, welcome to MrExcel, did you get any further with this?

This formula should give you the weekday hours, even if the start date/ end date is at the weekend

=NETWORKDAYS(I8,J8)+NETWORKDAYS(J8,J8)*(MOD(J8,1)-1)-NETWORKDAYS(I8,I8)*MOD(I8,1)

format result cell as [h]:mm
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

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