Brian Dunning's FileMaker Custom Functions

StateConvert ( postal ; type )

Convert US/Canadian states/provinces to full name, abbreviation or country

  Average rating: 3.6 (49 votes) Log in to vote

Marc Wood   Marc Wood

Share on Facebook Share on Twitter

  Sample input:
StateConvert ( "WY" , "Abbrev" )
  Sample output:

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

This function converts any two-letter US or Canadian postal code for states/provinces to one of three formats based on the type parameter:

"Abbrev" : Associated Press-style abbreviations
example: StateConvert ( "WY" , "Abbrev" ) = Wyo.

"Full" : Full state/province name
example: StateConvert ( "IA" , "Full" ) = Iowa

"Country" : The country in which the state/province is located
example: StateConvert ( "ON" , "Country" ) = Canada



Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: