Unexpected value returned with NETWORKDAYS function

susaneey

New Member
Joined
May 22, 2017
Messages
3
Hello, I am new to this forum and hope someone can help me to understand how the Networkdays result is being calculated in my project.

I have created a calendar that uses the date function to store and display the day only value in a pictorial calendar.

Here is the start date - April 29, 2017
u3yZzTS.png

Here is the end date - May 5, 2017
F7OKbat.png


I want to display the number of workdays between 4/29/2017 and 5/5/2017 - my expectation is to see the number "5"

tbsJQfP.png


However the result I get is -17.
had2gqE.png


I have no idea why. Can anybody help me?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Code:
=NETWORKDAYS(DATEVALUE("April 29, 2017"),DATEVALUE("May 5, 2017"))
Yields 5 for me.
 
Upvote 0
@susaneey:

You are getting -17 because your formula is essentially =NETWORKDAYS(29,5).

Instead of using =DAY(DATE(yyyy,mm,dd)), try just entering a date and custom-formatting the cell as d.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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