I want to create a formula for a particular opportunity record type, comparing two date fields and returning one of two variations on a pick list. I've tried variations on the below formula but can't seem to reach the correct conclusion: -
IF( AND(RecordType.Name = "Domestic Opportunity",
Created_Date__c <= Account.Last_Sale__c),
StageName = "Closed Won",
"Passed to Depot")
Any assistance would be very much appreciated.
IF
shouldn't be an assignment statement