Razzman Posted January 15, 2002 Posted January 15, 2002 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?
LiveOak Posted January 15, 2002 Posted January 15, 2002 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 ]
danjacoby Posted January 16, 2002 Posted January 16, 2002 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now