Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2007

Tip: Looking for answers? Try searching our database.

Counting networkdays with negative number

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Miranda - 08 Feb 2007 20:28 GMT
I am trying to get the number of days between two dates minus 1 to exclude
the start date.
Here is the formula i have with M2:M15 being my holidays.
=NETWORKDAYS(F1, G1, $M$2:$M$15)-1

My problem is when something is done early i get a negitave number and it
subtracts 1 like i told it to but i need to add one to Negative numbers.

Date due       Date Complete                    current formula            
should be
F                  J
1/4/2007       1/3/2007                            -3                        
        -1
1/4/2007       1/4/2007                             0                        
         0
1/4/2007       1/5/2007                             1                        
         1

Any help would be greatly appriciated.
Bernie Deitrick - 09 Feb 2007 14:16 GMT
Miranda,

=IF((NETWORKDAYS(F1, G1, $M$2:$M$15)-1)<0, NETWORKDAYS(F1, G1, $M$2:$M$15)+1, NETWORKDAYS(F1, G1,
$M$2:$M$15)-1)

HTH,
Bernie
MS Excel MVP

>I am trying to get the number of days between two dates minus 1 to exclude
> the start date.
[quoted text clipped - 15 lines]
>
> Any help would be greatly appriciated.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.