You need to sign in to do that
Don't have an account?
Salesforce Admin 89
I need to compare four date fields and display the least date field
IF(
AND(
ISBLANK(Date1__c),
ISBLANK(Date2__c ),
ISBLANK(Date3__c ),
ISBLANK(Date4__c )
),
NULL,
DATE(1900, 01, 01) +
TODAY()-MIN(
BLANKVALUE( Date1__c, DATE(1900, 01, 01) ) - DATE(1900, 01, 01),
BLANKVALUE(Date2__c,DATE(1900, 01, 01)) - DATE(1900, 01, 01),
BLANKVALUE(Date3__c,DATE(1900, 01, 01)) - DATE(1900, 01, 01),
BLANKVALUE(Date4__c,DATE(1900, 01, 01)) - DATE(1900, 01, 01),
)
)
AND(
ISBLANK(Date1__c),
ISBLANK(Date2__c ),
ISBLANK(Date3__c ),
ISBLANK(Date4__c )
),
NULL,
DATE(1900, 01, 01) +
TODAY()-MIN(
BLANKVALUE( Date1__c, DATE(1900, 01, 01) ) - DATE(1900, 01, 01),
BLANKVALUE(Date2__c,DATE(1900, 01, 01)) - DATE(1900, 01, 01),
BLANKVALUE(Date3__c,DATE(1900, 01, 01)) - DATE(1900, 01, 01),
BLANKVALUE(Date4__c,DATE(1900, 01, 01)) - DATE(1900, 01, 01),
)
)
Hi Salesforce Admin 89,
Please try below the formula ,
Please Mark It As Best Answer If It Helps
Thank You.
I need help in comparing the date fields even if their values are null. if a user is not providing 3 dates if he provides only one then I need to display that field in my formula field.