Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Separate data in field (comma delimited)


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

Recommended Posts

  • Newbies
Posted

I have a field that contains the full name of individuals. I would like to separate the full name which is separated by a comma into two fields, one with the first name and one with a last name. I want to print name tags with just the first name.

I imported the original data base from Excel and was able to separate the field into 2 columns at a later time, but FileMaker did not recognize the file so I could not import the information.

Thanks for the help.

Pillroller

Posted

Use a Set Field script step or Replace Field Contents on your FirstName field with a calculation of LeftWords( FullName; 1 ) and one on your LastName field of RightWords( FullName; 1 ). Note that if you have titles or suffixes in any records, this will not work and you'll either need to manually change them yourself or use more complicated calculations.

Posted

Welcome to the Forum,

You can do this using the Left, Right, Position and Lenght functions. Assuming that the field Name = Last Name, First Name.

Last_Name = Left ( Name; Position (Name; ","; 1; 1 ) - 1)

First Name = Right (Name, Lengh (Name ) - Position (Name; ","; 1; 1 ) - 1)

You may have to make an adjustment to make it work since I haven't tested this.

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