Results 1 to 10 of 10

Can the Function WORKDAYS display both Date and Time

Threaded View

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

    Can the Function WORKDAYS display both Date and Time

    The below utilises NETWORKDAYS function which forms part of the Analysis ToolPak Add-In - pre XL2007 this must be activated via Tools -> AddIns (else #NAME? will result)

    =MAX(0,NETWORKDAYS(A1,A2,holidays)-1+MOD(A2,1)-MOD(A1,1)*((WEEKDAY(A1,2)<6)*(COUNTIF(holidays,INT(A1))=0)))
    format cell as [hh]:mm

    where Holidays is a named range containing a listing of public holidays which are to be excluded

    Does that work for you ?

    edit: above is based on your assertion that start datetime might occur on a weekend but have assumed end datetime does not
    Last edited by DonkeyOte; 07-21-2010 at 03:06 AM.

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