Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6242 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a field named FullName from which I need to extract the last name into a separate field. I used the Calculatoin in the manual to do this when the field used the format of "FIrstName LastName" but we had to change the field to display "First Last, Title."

Can anyone help with a Calc to do this? A comma always follows the last name.

i.e.,

John Smith, MD --> Smith

Thanks!

Posted

We just had this topic.

See if this Link doesn't answer your questions. Be sure to follow any links, and download the example file(s)

HTH

Lee

Posted (edited)

It will break with just about any entry other than one word last names.

RightWords (YourField; 1)

Edited by Guest
Posted

Try:

Let ( [

len = Length ( FullName ) ;

end = Position ( FullName ; "," ; len ; - 1 ) ;

start = Position ( FullName ; " " ; end ; - 1 ) + 1

] ;

Middle ( FullName ; start ; end - start )

)

This topic is 6242 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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