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 7355 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

What is the correct function to put in a calculation field(Field2) that will extract the first letter from each of two words in a name field (Field1) that has a first and last names separated by a space?

Example Field1 = John Doe; Field2= JD.

Help please smile.gif

Posted

Left ( LeftWord (Field1 ; 1 ) ; 1) is the first letter of the first word

Left ( RightWord (Field1 ; 1 ) ; 1) is the first letter of the last word

so put them together

Left ( LeftWord (Field1 ; 1 ) ; 1) & Left ( RightWord (Field1 ; 1 ) ; 1)

Posted

Or, a custom funtion that will do it for a field with an arbitrary number of words:

Initials( String ) =

Case(

  String = "",

  "",

  Left( LeftWord( String, 1 ) ) & Initials( RightWords( String, WordCount( String ) - 1 )

)

Chuck

This topic is 7355 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.