date formula

Printed From: Crystal Reports Book — Forum Name: Technical Questions

Hi,
I need to count working days. which are those working days is not counting the holiday days. for example 1 week there are 7 days but because there is sunday the result will be only 6 days. And if there were another holidays so the result will be reduced by the another holidays and the result can be less than 6.
Does anyone can help?

thx,

Joe
Best case scenario is to have a calendar table with your dates in it and exclude the values identified as holidays.
If that is not possible you can put a really lengthy formula that identifies each holiday and a subtraction process if that holiday falls in your select criteria.
Also Ken Hamady (check his website) created a formula that handles most regular holidays.  I even modified it for our special holiday schedule at our organization (we always get the day after Thanksgiving off and Christmas Eve, unless a holiday falls on a Sunday).
can u send me the web link?

thx
It may take a bit of searching to find where the formula is.  You could also e-mail him.

ken@kenhamady.com