Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report Formuals

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello - I have no prior experience with Crystal Reports however - I have to create a report within a week.This is my problem:
I need to create a formula that can continuosly count the number of hours within a 7:00am - 7:00pm work day (12 hours) excluding weekends.How do I do that? Basically, I need the counter to start whenever a case is opened and then continue to count the number of hours until it is closed. The only hours that can be counted are the hours of 7:00am - 7:00pm.
 
The following link will show you the formula for calculating work days between two date fields.


You will have to:
1) Substitute your date fields in the beginning. If your start and end are datetime fields you will need to change the variable types.
2) Multiply the number of days by the number of hours in a day (12).
3) Adjust (or eliminate) the holiday list depending on if you use holidays and which you use.
4) Finally, you will have to adjust the total based on the Start Time and End time of the first and last day. If you have a date-time field this may happen automatically.

This is a tall order for someone who has no experience with Crystal Formulas. [sig]<p>Ken Hamady<br><a href=mailto:ken@kenhamady.com>ken@kenhamady.com</a><br><a href= Reports Taining by Ken Hamady</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top