+ Reply to Thread
Results 1 to 2 of 2

Code to work out working days a task took

  1. #1
    Registered User
    Join Date
    05-26-2008
    Posts
    18

    Code to work out working days a task took

    Hi all,

    I have an excel file, which shows a date when a task has been started on and the date the was task completed.

    Is there a code that i can use which will work out how many days it took to complete the task.

    For example

    If cell A1 states 20/10/2009 and cell B2 states 26/10/2009

    I need to find out how many days it took to complete this task knowing that the weekend falls during this period i need to know how many working days it took..

    My works opening days are Monday to Friday.

  2. #2
    Forum Contributor
    Join Date
    04-23-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003 work, 2007 home
    Posts
    199

    Re: Code to work out working days a task took

    use the newtworkdays function ensuring that your cells are formatted dd/mm/yyyy

    =networkdays(A1,A2) should return 5

    open fx (functions wizard to left of formula bar) select All and networkdays.... if you can't see this function go to tools-addins-select the analysis tool pack and download- you will now see the function

    you may need to minus 1 as below if you want to count non inclusive days

    =(NETWORKDAYS(B3,B5))-1
    Last edited by somesoldiers; 10-21-2009 at 10:49 AM.

+ 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