I'm working on a formula in SharePoint 2013 to compare the elapsed days after, if the start date is in the future, and today, unless today is after the end date, in which case I want the days between the start date and end date. I want to multiply this number by a value column I have created. I currently have the following:
=if(
([AM PROR (k£)]+[Apps PROR (k£)]+[CC PROR (k£)]+[Infra PROR (k£)])>1,
([AM PROR (k£)]+[Apps PROR (k£)]+[CC PROR (k£)]+[Infra PROR (k£)]),
IF(DATEDIF([FROM], [TODAY], ‘d’)<0,
0,
[EST: Monthly Revenue (£k)]*
IF(DATEDIF([TODAY], [TO] , ‘d’)<0,
DATEDIF([FROM], [TO], ‘d’),
DATEDIF([FROM], [TODAY], ‘d’))
)
But seem to be having an issue with the second IF statement, starting: IF(DATEDIF([FROM], [TODAY], ‘d’)<0, 0, IF(......
I want to say, if the project hasn't started, return 0, if it has then please IF(....
Is there a problem with using the DATEDIF to return a negative number in this way?
Any suggestions welcome.