bkamlin Posted February 26, 2004 Posted February 26, 2004 I am having trouble extracting a persons name into three parts First middle Last. Data is like this: Smith, John Jones, Fred Johnson James H. I use leftwords to pull the last name but if I use RightWords for the First name the Middle Initial gets in the way. I would really like to gather all three fields. First middle and Last.
EddyB Posted February 27, 2004 Posted February 27, 2004 Hi these calculations will pull out all names for you: FirstName= MiddleWords(Name, 2, 1) LastName= LeftWords(Name, 1) MiddleName= Case(WordCount(Name) > 2, RightWords(Name, 1), "") Hope this helps Ed
Recommended Posts
This topic is 7645 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