+ Reply to Thread
Results 1 to 5 of 5

Date and Time problem

Hybrid View

  1. #1
    Registered User
    Join Date
    07-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    63

    Angry Date and Time problem

    Hi All

    I need a bit of help. I got a spread sheet which i'm using the NETWORKDAYS function. I'm cutting a list of dates from a worksheet and pasting another (into say column A i.e.29/06/2009 23:59:59) in the next column is the date the event actually happened(e.g. sometimes the event is on time so 29/06/2009). In column C NETWORKDAYS i want this to be zero but i understand it's not because of the time it's 1.

    Any ideas how i can remove the time form col A.

    Thanks

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Date and Time problem

    Hy,
    try a helper column containing =int(a1) and format as date ( pull down as needed)

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Date and Time problem

    NETWORKDAYS is inclusive by nature, the Time element of the datetime value will not affect output ie time is essentially ignored in NETWORKDAYS, eg:

    =NETWORKDAYS(NOW(),TODAY()) will still generate 1 even though technically start > end.
    Last edited by DonkeyOte; 07-24-2009 at 07:37 AM.

  4. #4
    Registered User
    Join Date
    07-20-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Date and Time problem

    but when i remove the time NETWORKDAYS = 0 i.e. 26/06/09 - 26/06/09 = 0

    but this willl take ages to take all the times out manually

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Date and Time problem

    I'm not sure I follow, 26/06/09 as start & end will generate NETWORKDAYS of 1 as the date range encompasses 1 working day (this was my point about the function being inclusive by nature) ... whether or not time is associated with the date values is irrelevant for this particular function.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1