franknove Posted December 7, 2007 Posted December 7, 2007 I have a file which can contain one name such as John Smith or two names such as John Smith & Betty Brown. When there are two names they are separated by an "&". I would like to extract name 1 into two fields Contact1Name and Contact1Surname, and if a second name exists extract it into Contact2Name and Contact2Surname. Any assistance would be appreciated.
Lee Smith Posted December 7, 2007 Posted December 7, 2007 These will work for the example given. However, there can't be any middle names or initials in the contacts names. LeftWords ( FieldToBeParsed ; 1 ) MiddleWords ( FieldToBeParsed ; 2 ; 1 ) MiddleWords ( FieldToBeParsed ; 3 ; 1 ) MiddleWords ( FieldToBeParsed ; 4 ; 1 ) Lee
Recommended Posts
This topic is 6197 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