Alteryx Designer Desktop Discussions

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

Parse Full Name into First, Middle, Last name with Suffix

Nmassarone
8 - Asteroid

Hello have been trying to find the answer to this but cant seem to get a full breakdown i found some that can do half of what i need.

 

I'm looking to take a column with the full name and break it down into First name, Middle initial, Last Name, and Suffix. Also some last names have a hyphen in the last name and some names have a middle initial and some don't.

 

Was wondering if there is a regex code that can parse the full name and break it down. i posted a table example below....

 

Any help would be greatly appreciated

 

This is the original column....

Full Name
Anthony Smith
Ava R Collins
Carol Smith-Rodriguez
Jennifer Jones
Jeff G Waller JR.
Frank Hobbs
Tom Griffen SR.
Alicia F Smith-Walker

 

 

Would like the below output ....

Full NameFirst NameMiddle InitialLast NameSuffix
Anthony SmithAnthony  Smith 
Ava R CollinsAvaRCollins 
Carol Smith-RodriguezCarol Smith-Rodriguez 
Jennifer JonesJennifer Jones 
Jeff G Waller JR.JeffGWallerJR.
Frank HobbsFrank Hobbs 
Tom Griffen SR.Tom GriffenSR.
Alicia F Smith-WalkerAliciaFSmith-Walker 
5 REPLIES 5
Alteryx_AR
12 - Quasar

@Nmassarone  You can use text to column tool with space as a delimiter.

ArtiRajput_0-1648044299177.png

Then to rename fields use select tool

 

ArtiRajput_1-1648044377669.png

Hope this helps you 😊

Nmassarone
8 - Asteroid

so i tried that but the only thing with that is it doesn't align everything into the correct columns because some names don't have a middle initial and some dont have a suffix so it would output like this .... 

 

First NameMiddle InitialLast Name Suffix
AnthonySmith  
AvaRCollins 
CarolSmith-Rodriguez  
JenniferJones  
JeffGWallerJR.
FrankHobbs  
TomGriffenSR. 
AliciaFSmith-Walke 
Luke_C
17 - Castor

Hi @Nmassarone 

 

Take a look at this thread, there are a few nuances to consider.

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Name-Parsing-Question/td-p/423571

 

binuacs
20 - Arcturus
Nmassarone
8 - Asteroid

@Luke_C thank you for the post this was helpful i was able to take that and tweak it to get the results

 

@binuacs this is exactly what i needed thank you for this sorted everything perfectly.

 

appreciate the responses and the help on it thank you so much.

Labels