Exclude weekends from calculations

A

Alex Martinez

Hi,

I am using this code in my text box. I work for an insurance company. The
first code determines the number of days when an audit is assigned. The
second code is for determining the number of days the audit has been in the
office. My question is on both cases I want to exclude weekend (Saturday &
Sunday) in my calculcation (code) is this possible? Also, if possible how
can I exclude major US holiday's? Any tips will be appreciated. Thank you
in advance.

Number of days assigned
=IIf([Completed] Is Not
Null,Int([Completed]-[AssignedOn]),Int((Now()-[AssignedOn])))

Number of days in office
=IIf([Completed] Is Not Null,Int([Completed]-[Rec'd]),Int(Now()-[Rec'd]))
 

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