The Mad Jammer Posted September 23, 2003 Posted September 23, 2003 I wish to calculate the number of days that have transpired between two dates. My calculation field is LaterDate - EarlierDate. Unfortunately the LaterDate is not always available and the calculation yields a huge negative number. How can I resolve this dilemma? I also want to calculate the average number of days for all the records. I suppose I will have to exclude records without both these dates? Thanks The Mad Jammer And then...there was nothing.
BobWeaver Posted September 24, 2003 Posted September 24, 2003 Case(IsEmpty(LaterDate),"", IsEmpty(EarlierDate),"", LaterDate-EarlierDate) To do an average you will have to be careful to make sure it's a weighted average. The field it is weighted by should be a calculated field with this calculation: cWeighting = not(IsEmpty(LaterDate) or IsEmpty(EarlierDate))
The Mad Jammer Posted September 25, 2003 Author Posted September 25, 2003 Thanks Bob Weaver. The Mad Jammer
Recommended Posts
This topic is 7800 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now