Jump to content

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

Recommended Posts

Posted

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.

Posted

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

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 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.