ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Removing Prefix from Names

mmustkee
Bola de fuego

H Team,

 

I have a long list in which I need to remove prefix from names. Some examples ae below. Kindly refer table and help me to achieve target.

NameTarget
MR amaramar
Mramaramar
MRS TmirTmir
MRSTmirTmir
DR simonsimon
DRsimonsimon
PROF HasanHasan
PROFHasanHasan
MISS TomarTomar
MISSTomarTomar
MRS TomaToma
MRSTomaToma
MS DrawingDrawing
MSDrawingDrawing
DrawerDrawer
SawerSawer
Haseen MSHaseen
Taken love mrTaken love
Taken love mrsTaken love
Taken love msTaken love
Taken love mrsTaken love
Taken love drTaken love
Taken love profTaken love
ShakenShaken
Mohammad MustkeemMohammad Mustkeem
8 RESPUESTAS 8
DenisZ
Bólido

I could suggest using the find and replace tool here

 

DenisZ_0-1667542340729.png

 

grazitti_sapna
Cástor

@mmustkee , Please dinf one way to resolve your problem using formula and regex_replace function:

 

grazitti_sapna_0-1667542660166.png

 

Sapna Gupta
mmustkee
Bola de fuego

Thanks a lot for your quick response.

mmustkee
Bola de fuego

HI Thanks for your reply but find and replace will not work.

Suppose if we have these prefix in the middle of the name like Thoms, Thmrsasa, mdram, then it will remove middle prefix as well.

Do you have another solution for the same.

mmustkee
Bola de fuego

Hi,

 

Sorry to bother you but when I applied this on my file it deleted these prefix from middle of the name as well. I just want these prefix to be removed from starting of the name and from end of the name with or without space.

 

Kindly help.. 

mmustkee
Bola de fuego

Kindly refer two names 

Thomsds
Thmrsasa
mmustkee
Bola de fuego

Hi Sapna,

Hi,

 

Sorry to bother you but when I applied this on my file it deleted these prefix from middle of the name as well. I just want these prefix to be removed from starting of the name and from end of the name with or without space. Please refer name below:

Thomsds
Thmrsasa

 

Kindly help.. 

DenisZ
Bólido

@mmustkee 

I believe if you enter a blank space before and/or after Mr etc. in the formula tool, then it could solve the problem. 

Etiquetas
Autores con mayor cantidad de soluciones