Brian Dunning's FileMaker Custom Functions

State-to-Abbrev ( State )

Convert and substitute U.S. State names to their 2 Letter Abbreviation

  Be the first to rate this function Log in to vote

Chase Holden   Chase Holden - Show more from this author
Merchant Services Group
http://mservicegroup.com

Share on Facebook Share on Twitter

  Sample input:
"Kansas"
  Sample output:
"KS"

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This custom function will accept any U.S. state spelling and some Canadian Provinces and replace the field with its 2 character abbreviation in CAPS. Function will also normalize the text input from any upper or lower Case characters, trim any extra spaces and remove any text formatting.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: