Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel NETWORKDAYS - incorrect results

Why does NETWORKDAYS add 1 to positive results and subtracts 1 from negative
results? Please see example below:

Agreed Date Actual Date Variance Calculated Should be
(Bus
Days)

31/08/2004 13/08/2004 13 12
31/08/2004 28/09/2004 -21 -20

Does anyone know how to get around this? I have tried the IF function, to no
avail.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Excel NETWORKDAYS - incorrect results

That depends on your reasoning:

Networkdays includes both the start date end the end date.
so 13 and (-)21 are correct, see:

13-08-04 Fri 1
14-08-04 Sat
15-08-04 Sun
16-08-04 Mon 1
17-08-04 Tue 1
18-08-04 Wed 1
19-08-04 Thu 1
20-08-04 Fri 1
21-08-04 Sat
22-08-04 Sun
23-08-04 Mon 1
24-08-04 Tue 1
25-08-04 Wed 1
26-08-04 Thu 1
27-08-04 Fri 1
28-08-04 Sat
29-08-04 Sun
30-08-04 Mon 1
31-08-04 Tue 1 1
01-09-04 Wed 1
02-09-04 Thu 1
03-09-04 Fri 1
04-09-04 Sat
05-09-04 Sun
06-09-04 Mon 1
07-09-04 Tue 1
08-09-04 Wed 1
09-09-04 Thu 1
10-09-04 Fri 1
11-09-04 Sat
12-09-04 Sun
13-09-04 Mon 1
14-09-04 Tue 1
15-09-04 Wed 1
16-09-04 Thu 1
17-09-04 Fri 1
18-09-04 Sat
19-09-04 Sun
20-09-04 Mon 1
21-09-04 Tue 1
22-09-04 Wed 1
23-09-04 Thu 1
24-09-04 Fri 1
25-09-04 Sat
26-09-04 Sun
27-09-04 Mon 1
28-09-04 Tue 1

13 21



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Patricia wrote :

Why does NETWORKDAYS add 1 to positive results and subtracts 1 from
negative results? Please see example below:

Agreed Date Actual Date Variance Calculated Should be

(Bus Days)

31/08/2004 13/08/2004 13 12
31/08/2004 28/09/2004 -21 -20

Does anyone know how to get around this? I have tried the IF
function, to no avail.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Excel NETWORKDAYS - incorrect results

This function is inclusive on both ends. So adjust your formula to exclude
whichever day you want, i.e. with start date in A1 and end date in B1, if you
want to exclude the end date, it's =NETWORKDAYS(A1,B1-1); to exclude the
starting date, =NETWORKDAYS(A1+1,B1)


On Tue, 19 Apr 2005 00:17:02 -0700, "Patricia" <Patricia
@discussions.microsoft.com wrote:

Why does NETWORKDAYS add 1 to positive results and subtracts 1 from negative
results? Please see example below:

Agreed Date Actual Date Variance Calculated Should be
(Bus
Days)

31/08/2004 13/08/2004 13 12
31/08/2004 28/09/2004 -21 -20

Does anyone know how to get around this? I have tried the IF function, to no
avail.


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
Goalseek gives incorrect results dindigul New Users to Excel 1 July 12th 09 12:14 AM
results incorrect KMC Excel Discussion (Misc queries) 2 July 18th 08 03:14 PM
vlookup gives incorrect results Forrest G. Excel Worksheet Functions 3 December 18th 06 05:40 PM
Very large workbook now giving incorrect results :( [email protected] Excel Discussion (Misc queries) 0 July 17th 06 11:29 PM
Grouping the results of Networkdays fourskunks Excel Discussion (Misc queries) 2 December 5th 05 03:35 PM


All times are GMT +1. The time now is 06:53 PM.

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

About Us

"It's about Microsoft Excel"