Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JamesDMartin
 
Posts: n/a
Default Networkdays problem


Hi
I'm trying to use the network days function to calculate how many days
there are between today() and a list of project deadlines.

The function i'm using is *NETWORKDAYS($N$2,E3)*
Where $N$2 is a cell containing the function *Today()* returning todays
date. and the E column contains the project dead lines

Cell N2 and the E column are formatted as CUSTOM d/m/yy (UK)

As an example of the problem if todays date N2 is 29/03/05
And the E column contains 30/5/2005 the figure returned is 14
If the E column contains 14/4/2005 the figure returned is 13
If the E column contains 14/6/2005 the figure returned is 25
If the E column contains 21/6/2005 the figure returned is 1

Its all over the place.

I've tried changing the Format of the cells to the US format i.e.
mm/dd/yy but the format makes no odds.

Ive tried removing the function *today()* from N2 and replacing it with
a date, same problem.

I dont think its the way i have put the formula in, i think it has
somthing to do with the settup of the spreadsheet.

Can anyone sugest what the problem is?

Regards
James


--
JamesDMartin
------------------------------------------------------------------------
JamesDMartin's Profile: http://www.msusenet.com/member.php?userid=272
View this thread: http://www.msusenet.com/t-3344333

  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 29 Mar 2005 06:55:02 -0500, JamesDMartin
wrote:


Hi
I'm trying to use the network days function to calculate how many days
there are between today() and a list of project deadlines.

The function i'm using is *NETWORKDAYS($N$2,E3)*
Where $N$2 is a cell containing the function *Today()* returning todays
date. and the E column contains the project dead lines

Cell N2 and the E column are formatted as CUSTOM d/m/yy (UK)

As an example of the problem if todays date N2 is 29/03/05
And the E column contains 30/5/2005 the figure returned is 14
If the E column contains 14/4/2005 the figure returned is 13
If the E column contains 14/6/2005 the figure returned is 25
If the E column contains 21/6/2005 the figure returned is 1

Its all over the place.

I've tried changing the Format of the cells to the US format i.e.
mm/dd/yy but the format makes no odds.

Ive tried removing the function *today()* from N2 and replacing it with
a date, same problem.

I dont think its the way i have put the formula in, i think it has
somthing to do with the settup of the spreadsheet.

Can anyone sugest what the problem is?

Regards
James


Date input parsing is determined by your regional settings, not by the Excel
format. The Excel format only determines how the input is displayed.

As a test, try entering the dates unambiguously. Such as:

=DATE(2005,5,30)
=DATE(2005,4,14)
=DATE(2005,6,14)
=DATE(2005,6,21)

=TODAY() in N2 is unambiguous

If that gives correct answers, then check under your Windows regional settings
(or the equivalent if you're using a different OS) that your date settings are
the way you are entering your data.


--ron
  #3   Report Post  
JamesDMartin
 
Posts: n/a
Default


Cheers Ron
I tried what you said, entering the date =DATE(2005,6,21) format and
the results were the same.

I Found i had the results column formatted to dd instead of number or
general.
When you insert a column it copys the format from the the exising
coloumn to its left.

Thanks for the help


--
JamesDMartin
------------------------------------------------------------------------
JamesDMartin's Profile: http://www.msusenet.com/member.php?userid=272
View this thread: http://www.msusenet.com/t-3344333

  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 30 Mar 2005 04:05:40 -0500, JamesDMartin
wrote:

I Found i had the results column formatted to dd instead of number or
general.


Yep, that'll do it. Glad you got it figured out.


--ron
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
Problem with Array Formulas and ISNUMBER Henrik Excel Worksheet Functions 1 February 10th 05 12:31 AM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM
Paper Tray selection Problem, Michael Hoffmann Excel Discussion (Misc queries) 4 December 3rd 04 09:08 PM
Networkdays shows as #NAME even though I have the toolpack instal. mark Excel Discussion (Misc queries) 1 December 1st 04 09:13 PM


All times are GMT +1. The time now is 04:11 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"