You need to sign in to do that
Don't have an account?

Formula Field Checkbox - How to add multiple values to filter
I am attempting to get a checkbox formula field to be TRUE when another field, "Shipping State", does not contain certain states. I tried the following but it is not seeing each state as a different value. What could I be missing? Thanks!
Thanks!
NOT( AND( Shipping_State__c = ("AL,AR,AZ,CA,CO,CT,DC,DE,FL,GA,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN,MO,MS,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VA,VT,WA,WI,WV,WY"), Shipping_State__c = ("?,NA,1,??,0,.") ) )
Thanks!
All Answers
I think CASE function is the best approach for this. Your formula would would be like this
If the State doesn't contain any of the above mentioned states, it would return TRUE else FALSE.
Kindly mark it as an answer if that works.
Both worked, however I wanted to do best practice and go with the smallest compiled code.
I wrote the following after asking my question but it was over 2,000 characters after being compiled.
Peters answer is the best as after being compiled is is only around 200 characters and I used the following
Thanks again.