Networkdays problem

logstarter

New Member
Joined
Apr 14, 2017
Messages
39
Hi, I am using networkdays to check the date difference. I found that for the cases with two same dates, some records return 0 but some return -1.. I try to use if statement to compare those 2 dates, they are return yes (the same)... I can't figure out the reasons so I would like to ask the possible cause of that....

Thank you for your help.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Don't know about -1 but NETWORKDAYS should only return 0 if the -same- dates are a holiday and entered as such in the function.
Normal NETWORKDAYS should return 1 for difference between two identical dates
=networkdays(19/10/20,19/10/20,19/10/20) =0
and
=networkdays(19/10/20,19/10/20) =1
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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