Delivery Variance - using DATEDIF (+/-) and Networkdays

janeyin

New Member
Joined
Sep 15, 2017
Messages
3
Hi there

I have the following formula

IF(L4>I4,DATEDIF(I4,L4,"d"),-DATEDIF(L4,I4,"d"))))

I column is the due date and L column is the completed date

The formula is working to show completed task delivery (positive or negative) against due date

However, I would like to exclude weekends from the result. I am guessing I need to include networkdays somewhere but can't seem to get it to work

Help would be much appreciated!

Thanks so much!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi, don't you just need:

=NETWORKDAYS(I4,L4)

You might need to format the cell as general or number.
 
Upvote 0
Thanks for you help, that doesn't seem to work either though, I tried it with -1 as follows

NETWORKDAYS(I4,L4)-1)

Because if the task is completed on the due date I want the variance to be 0

Networkdays -1 all works ok until a task is completed early, in which case I wanted a negative variance e.g if task was due 6th September and delivered 5th September I wanted it to display -1

Datedif with the + and - works for the positive and negatives just can't get the working days only...........
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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