Skip to main content
Hi all,

 

Bit of an odd one but im hoping someone might help. Ive been tasked with creating a field on an object that calculates the difference in date form between 3 possible fields.

 

So we have Start Date, Projected End Date and Actual End Date. Ideally we want the calculation to be from Start Date to Actual End Date but this doesnt always have information in it. Therefore it will then need to calculate the date from Projected End Date if this occurs.

 

Im aware that i need to make a formula to do this. However Im not sure how to do one that will look at Actual end date and if theres no date in there make the calculation from Projected End Date.

 

Can anyone assist with what the formula would be for such a condition?

 

 
3 réponses
  1. 22 nov. 2018, 10:04
    Hi Lewis,

     

    the formula will be as below

    BLANKVALUE(Actual_End_Date__c, Projected_End_Date__c) -

    Start_Date__c

    Please use the insert field button to select the field API Names and make sure you select treat blankfields as blanks under the blankvalue handling section on the formula field