Calculating 2 dates need to subtract weekends and holidays

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

tried a couple of fomulars did not work here is what i have now can someone
help me
=DateDiff("ww",[Release
Date],[SHPMT_DATE],[DayOfWeek])-Int([DayOfWeek]=Weekday([Release Date]))
 
John,

In these sorts of problems, I often find myself that it helps to try to
express in ordinary English the result I am trying to obtain.
 
Assuming that release and ship dates cannot be on week ends (and that week
ends are Saturday and sunday)

NumberOfDays = (DateDiff("d", ReleaseDate, Shpmt_Date, vbMonday) -
((DateDiff("ww", ReleaseDate, Shpmt_Date, vbMonday) - 1) * 2)) - 1

You may need a small tweek depending on how you count (or don't) the start
and end dates.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top