Omitting Weekends from a Formula

B

BradLev

Hi

I'm trying to create a date formula that subtracts one custom date from another. But I would like it to omit weekends from the calculation.
 
J

John Beamish

ProjDateDiff( [start], [finish]) returns a result of 2 if the start date is
Friday and the Finish date is the following Monday. Is this what you mean?

JLB, PMP

BradLev said:
Hi,

I'm trying to create a date formula that subtracts one custom date from
another. But I would like it to omit weekends from the calculation.
 
J

JackD

As another poster has noted, you can use projdatediff. It allows you to
specify a calendar to base the difference on. If you do not specify a
calendar then it uses the standard calendar. This way you can calculate
based only on working times or you can set a calendar up anyway you would
like.

Syntax is:

ProjDateDiff( date1, date2, calendar )

-JAck


BradLev said:
Hi,

I'm trying to create a date formula that subtracts one custom date from
another. But I would like it to omit weekends from the calculation.
 

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

Top