
when business segment is not equals to Government
1)If state is :ME:VT:NH:MA value will be USA EAST
2)when business segment is not equals to Government
If state is : AK:WA:OR:ID Value will be USA WEST
3)If Billing Country = Canada - CA
4)IF BS - Govt - Public sector
5)If Region is Latin America —Latin America.
The business segment is a picklist value and the Region is a formula field.
Any help very much appreciated.
1 resposta
Try this,
IF(AND(NOT(ISPICKVAL( Business_Segment__c,"Government")),CONTAINS("ME:VT:NH:MA",MailingState)),"USA EAST",
IF(AND(NOT(ISPICKVAL( Business_Segment__c,"Government")),CONTAINS("AK:WA:OR:ID",MailingState)),"USA WEST",
IF(CONTAINS("Canada",MailingCountry),"CA",
IF(ISPICKVAL( Business_Segment__c,"Government"),"Public Sector",
IF(CONTAINS("Latin America",Region__c),"Latin America",""))))))