DateDIF Excluding Weekends (But showing day 0)

Tingle

New Member
Joined
Dec 21, 2016
Messages
47
Hi Guys,

Can anyone help me with this formula?

I know I can use either one to exclude weekends however if the Start date is the same as the completed date it shows 1 day where effectively I need it to show 0.

=NETWORKDAYS(A1,B1)

=SUM(INT((WEEKDAY(A1-{2,3,4,5,6})+B1-A1)/7))

Surely it wont be as simple as adding a -1 after?

Any suggestions would be great?

Thanks

Tingle
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If B1 is always >= A1 and they are both working days (Monday to Friday) then subtracting 1 will always work
I prefer to either Add 1 to the StartDate or Subtract 1 from the End Date.
If either Start or End date happens to be a weekend, then just subtracting 1 from the overal result would be eroneous.
 
Upvote 0
Hello Jonmo,

I suppose what’s missing here is complete explanation of the required result.

Perhaps it can’t happen in Tingle’s case, but what should the result be if A1 is a Friday and B1 is the following day......or A1 is a Sunday and B1 is the following day?

I’m not advocating subtracting 1 as the best solution, just suggesting when it might be appropriate to use
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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