As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
I am trying to count the number of matter beased on the date ranges. I have to dates open date and the resolved date. I am looking at those matters which are active i.e where resolved date is Null. This is one senario.
But i am facing problem when the open date and resolved date does not fall on the same month
Eg - if the open date of a particular matter is 02 Feb 2010 and the matter resolved date is 02 May 2010, so i need to get the count for that matter to be one for the month of Feb, Mar, and Apr.
can anyone please help me wiht thisThis message has been edited. Last edited by: Kerry,
769 Excel,PDF and HTML
Posts: 35 | Location: Bangalore | Registered: March 27, 2008
If your dates are SmartDates, you can use function DATEDIF to calculate the number of months between two dates. If the resolved date is NULL you could use the current date as the resolved-date for determining how many months the issue has been open.
EDIT: The above will give you whole months. If you prefer to include fractions of a month, then use DATEDIF to calculate the difference in days and divide by 30 to get a close approximation of months with fractions thereof.