Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Counting networkdays with negative number

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Counting networkdays with negative number

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


"Miranda" wrote in message
...
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Negative Number to Postive number Tedd Excel Worksheet Functions 7 September 2nd 09 04:34 PM
change negative sign from end of the number to the begining James Excel Discussion (Misc queries) 11 September 23rd 06 05:36 PM
Counting number of cells that make up a sum.. tim m Excel Discussion (Misc queries) 2 September 21st 06 02:55 PM
Force function to show positive or negative number? smoore Excel Worksheet Functions 3 March 3rd 06 08:34 PM
convert cells to negative number sparker Excel Discussion (Misc queries) 3 September 1st 05 07:39 PM


All times are GMT +1. The time now is 05:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"