Results 1 to 3 of 3

Thread: How do I use DATEDIFF to count only working days?

  1. #1
    Join Date
    Sep 2005
    Posts
    56

    How do I use DATEDIFF to count only working days?

    I need a bit help with working days in Microsoft Project. I am trying to subtract two dates (Start date and Finish date) in order to get the number of days between them. However i am not able to do the same, the dates include Saturdays and Sundays as well. I have tried using this DateDiff("d",[Start],[Finish]) and i have tried using "ww" instead of "d" but no luck. Is there anyone here who can help me out???

  2. #2
    Join Date
    Sep 2005
    Posts
    226
    Don't use DateDiff, instead try using ProjDateDiff.

  3. #3
    Join Date
    Sep 2005
    Posts
    157

    Datediff formula - using

    You can try below formula, If you are using Number field then you will have to get number as output for example "1" or "2". If you are using Text field then you can get "Red" or "Green" as the output.

    For a Number field:
    IIf(DateDiff("d",[Current Date],[Start])<8,1,2)

    For a Text field:
    IIf(DateDiff("d",[Current Date],[Start])<8,"Red","Green")

    Hope that helps.

Similar Threads

  1. Replies: 3
    Last Post: 12-01-2011, 05:05 AM
  2. VBScript DateDiff Function
    By Zool in forum Software Development
    Replies: 5
    Last Post: 15-12-2009, 12:05 PM
  3. Calculate Working days in MySql
    By DeMario in forum Software Development
    Replies: 4
    Last Post: 06-11-2009, 06:00 PM
  4. find period in days / hours excluding weekdays between two days?
    By Segvoia in forum Software Development
    Replies: 3
    Last Post: 19-06-2009, 11:17 AM
  5. Calendar Working Days
    By Muhammad Waqar in forum Microsoft Project
    Replies: 3
    Last Post: 18-09-2008, 02:31 AM

Tags for this Thread

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
  •  
Page generated in 1,713,924,783.09425 seconds with 17 queries