Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Parsing Name into First Name and Middle Name

Idyllic_Data_Geek
8 - Asteroid

I've a use case that I'm trying to solve. I have Name column which is unstructured in the sense that some names have an initial for middle , some have full name and some don;t have middle name at all. I've created 2 new fields First Name and Last Name. And for an example QUENTIN W WORTHY should have last Name of Worthy and First Name of Quentin M. Similarly MATTHEW TAYLOR RODRIGUEZ should have last name of Rodriguez and First Name of Matthew Taylor

 

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@Idyllic_Data_Geek 
Parsing names are usually difficult and not in a fixed pattern which causing difficulty.
Can you kindly provide a few more samples so we can take a close look?

FilipR
11 - Bolide

Please see attached. My solution will work if the Last Name is one word (or two words separated by a sign other than a space). Remember to cleanse your data from trailing spaces, as the formula looks for the last space in a string.

 

FilipR_0-1654865309210.png

 

ddiesel
13 - Pulsar
13 - Pulsar

Hi @Idyllic_Data_Geek!

 

To build upon @FilipR's solution, here's a RegEx approach with some of the other formatting options you requested above.

 

Capture.JPG

 

Please let us know if these solutions work for you!

 

Thanks,
Deb

Labels
Top Solution Authors