You need to sign in to do that
Don't have an account?
How to include an exception?
How best to exclude a certain record type into this formula: RecordType.Name = "Brazil Deals"
My formula:
IF(
OR(
Campaign_Start_Date__c>DATE(2016,6,30),
Campaign_End_Date__c<DATE(2016,4,1)),0,
IF(
AND(
Campaign_Start_Date__c>=DATE(2016,4,1),
Campaign_End_Date__c<=DATE(2016,6,30)),
(Campaign_End_Date__c-Campaign_Start_Date__c+1)*Avg_Daily_Revenue__c,
IF(
AND(
Campaign_Start_Date__c<=DATE(2016,4,1),
Campaign_End_Date__c>=DATE(2016,6,30)),
(DATE(2016,6,30)-DATE(2016,4,1)+1)*Avg_Daily_Revenue__c,
)))
My formula:
IF(
OR(
Campaign_Start_Date__c>DATE(2016,6,30),
Campaign_End_Date__c<DATE(2016,4,1)),0,
IF(
AND(
Campaign_Start_Date__c>=DATE(2016,4,1),
Campaign_End_Date__c<=DATE(2016,6,30)),
(Campaign_End_Date__c-Campaign_Start_Date__c+1)*Avg_Daily_Revenue__c,
IF(
AND(
Campaign_Start_Date__c<=DATE(2016,4,1),
Campaign_End_Date__c>=DATE(2016,6,30)),
(DATE(2016,6,30)-DATE(2016,4,1)+1)*Avg_Daily_Revenue__c,
)))
You could add one mroe if on the top of your formula
IF( RecordType.Name = "Brazil Deals", 0, rest of Your formula )
This would mean when RecordType.Name = "Brazil Deals" then result will be 0, if you want to put any other value or blank please change accordingly.
Thanks
Shashikant
Please use the below code:
Please do let me knwo if it helps you.
Regards,
Mahesh
Sorry type mistake:
Regards,
Mahesh