If the above is all false, then check to see if Customer_Key__c Contains "DEF" and if so, display, "Location 2"
otherwise, display "Location 3"
We keep getting "Location 3" for the result
IF(
AND(
CONTAINS(Customer_Key__c ,"ABC"),
OR(
CONTAINS(Route_Number__c,"123"),
CONTAINS(Route_Number__c,"456"))),
"Location 1",
IF( CONTAINS(Customer_Key__c ,"DEF"), "Location 2", "Location3"))
)
7 个回答
Try using this
IF(
AND(
CONTAINS(Customer_Key__c ,"# 1# 1# 1# 1"),
OR(
CONTAINS(UPPER(Route_Number__c),"HILO"),
CONTAINS(Route_Number__c,"HIL0"))),
"Hilo",
IF( CONTAINS(Customer_Key__c ,"# 1# 1# 5# 1"), "Maui",
"Oahu"))