Calculating the 'age' of a list item
I am trying to calculate the number of days that a list item has been open. I want to find the difference (in terms of the number of days) since the create date of the item and today. I tried using the formula =DATEDIF (Created, Today, "d") but the today function doesn't work for a calculated field. HELP
March 23rd, 2010 4:14pm

try this taken from http://abstractspaces.wordpress.com/2009/05/02/common-date-time-formulas-for-sharepoint-calculated-fields/ Date Difference in days – Hours – Min format : e.g 4days 5hours 10min :=YEAR(Today)-YEAR(Created)-IF(OR(MONTH(Today)<MONTH(Created),AND(MONTH(Today)=MONTH(Created),DAY(Today)<DAY(Created))),1,0)&” years, “&MONTH(Today)-MONTH(Created)+IF(AND(MONTH(Today)<=MONTH(Created),DAY(Today)<DAY(Created)),11,IF(AND(MONTH(Today)<MONTH(Created),DAY(Today)>=DAY(Created)),12,IF(AND(MONTH(Today)>MONTH(Created),DAY(Today)<DAY(Created)),-1)))&” months,“&Today-DATE(YEAR(Today),MONTH(Today)-IF(DAY(Today)<DAY(Created),1,0),DAY(Created))&” days”Regards, Vikas Patel.
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2010 4:41pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics