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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,214,522
Messages
6,120,019
Members
448,938
Latest member
Aaliya13

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