Jump 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.

Splitting up a name field

Featured Replies

I have a file that I need to import into my database on a semi-regular basis. It contains a name field that has a

FirstName MiddleInitial LastName

There is a period after the Middle initial when there is a middle initial. Sometimes the whole middle name is there and sometimes there is nothing but the first and last name.

Soooo what I want to do is create a calculation that will grab the last name. I would like it to grab the entire last name. Sometimes there is a hyphen in the middle and when there is I only get part of the name.

I am not very good with calculations so hopefully someone can help. I tried searching for topics but I could not find what I was looking for.

Thank you in advance.

Cmack

An automated process is likely to incorrectly break up some names because names don't always conform to a standard format.

You might search the forums about this, as this question comes up from time to time.

  • Author

I tried that but I am must be using the wrong search terms.

Hi Cmack,

The need to split names out of one field, or parse text has come up hundreds of times.

The keywords would be something like

+Extract +Last +name

+Parse +Name

Use the Pluses as shown, and it narrows the search to those posts where only the search criteria appear.

However, I think you will find what you need at this Link

HTH

Lee

I would agree with Ender. There is no perfect calculation, because the variety of human names is just about endless. By that I mostly mean the exceptions, where either the first name has 2 words, or the last name does. Ignoring the first (which is rare in English), it is possible to trap for common combinations of the last name. I'm attaching the best file I've seen for this. It's an old file by Lynn Bradford. It uses repetitions to store the exceptions, to keep everything stored. You could also do this more relationally, by scripting the parse; I believe I'd do that, just to avoid the limitations and hassle of the repetitions. But it would be basically the same idea; loop through the exceptions to see if you have one.

NameParseLynn.fp7.zip

  • Author

Thank you both for replies. I am glad my confusion was not just me but that it was indeed a more complicated thing to do then I thought.

I will take a look at the file Fenton. I may just do as you suggest however with a relationship.

Lee thank you for the information on how to do the search. I was not using the + and the terms I was using were bringing up tons of posts.

Edited by Guest

Create an account or sign in to comment

Important Information

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

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.