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

Split out Last Name, First Name


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

Recommended Posts

Posted

I converted an Excel spreadsheet used as a contact database. The author lumped the entire contact's name into one field. My master DB has these split out First Name, Last Name as most people prefer. This has got to be an age old problem. Any scripts floating around?

Posted

Not too many good solutions. There are so many variations of names. The most basic script (which won't work 20% of the time due to compound names) is:

Set Field (FirstName), LeftWords (Name, 1))

Set Field (LastName), RightWords (Name, 1))

-bd

[ January 15, 2002: Message edited by: LiveOak ]

Posted

I suggest a slight modification:

Case(WordCount (Name) = 2,

Set Field (FirstName), LeftWords (Name, 1))

Set Field (LastName), RightWords (Name, 1)),

Set Field (FirstName), LeftWords (Name, 2))

Set Field (LastName), RightWords (Name, 1)))

That way, for three-word names, only the last name goes in the last name field. You can actually try several "Case" parameters, depending on what oddities you notice.

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