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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NEED AGING FORMULA THAT DOES NOT COUNT THE WEEKENDS

Status
Not open for further replies.

Nmartin95

MIS
May 29, 2002
19
US
How can I get an aging formula which does not take into consideration the weekend? So it would be how ever long a work order was open not counting the weekends into the age. The formula would give it to me the age in days.
Any help would be greatly appreciated thanks. I am using crystal reports 7.01.
 
Dear NMartin95,

I am not at my computer with Crystal right now, but I believe the correct formula is:

DateDiff ("d", datefield1, ddatefield2) -
DateDiff ("ww", ddatefield1, ddatefield2, crSaturday) -
DateDiff ("ww", ddatefield1, ddatefield2, crSunday)

Hope that does it for you. Go to Help in Crystal and type in DateDiff to read all the options.

ro

------
Oh, I just noticed that you are on 7.

Check out the FAQ and try Ken Hamady's Business Days and Hours Formula - it's long, but it works like a charm!

There is a ufl that provides datediff functionality for 7.0 (5 - 7). I haven't used it but is should be the same. While you are there, you might as well get the DateAdd ufl!

Datediff:

DateAdd:




Rosemary Lieberman
rosemary@microflo.com, Microflo provides expert consulting on MagicTSD and Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top