Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Extract ZIP Code

Featured Replies

I need to extract the ZIP code from an address. I'm having no luck figuring this out on my own.

The addresses are all contained in one field, and sometimes they contain 3 lines, sometimes 4. For example:

Absolute Transcription

87 Village Lane

Canton, CT 06019

or

J&J Court Transcribers, Inc.

268 Evergreen Avenue

P.O. Box 3211

Hamilton, NJ 08619

I need the ZIP codes so I can make a list of addresses according to area.

Thanks for any help you can provide.

Kevin

You have more than one problem. Your data structure needs to be change. Each of these should have their own field.

In other words,

NameFirst

NameLast

StreetAddress

City

State

Zip

PhoneNumbeer, and so on.

If you have no control over data entry, there are some CFs, or calculations that you can use to parse this information out.

However, I would change the structure first.

You need to Update your profile to reflect the Platform, Operations System, and Version of FileMaker.

Lee

  • Author

Thanks, Lee. I've updated my profile.

The addresses in my database are static, so to speak. There are minor changes on an annual basis. It is a collection of court transcript services.

When an attorney orders a transcript, I would like to be able to provide a list by ZIP code so that the attorney can select a transcript service local to his or her office.

Thanks again,

Kevin

I believe you can extract the ZIP code as =

RightWords ( Address ; 1 )

Still, it would be best to have a separate field for each component of the address, as Lee said.

  • Author

Thank you, Comment. Works perfectly.

And yes, I think I'll separate the addresses into separate fields as Lee suggested. But right now, your calc is the perfect bandaid.

Kevin

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.