Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam posts. As we work toward a permanent solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts. Thank you for your patience!

Alteryx Designer Desktop Discussions

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

alteryx find startwith and replace

ryanzhang487
8 - Asteroid

Hi community, I have a column with some data like "IK-400", "IK-323" or "IK-XAS", i would want to replace it to IKA-XXXX",

anything startswith IK- and i would like to replace it to IKA-, 

how can I do that please?

Thank you

2 REPLIES 2
alexnajm
17 - Castor
17 - Castor

Try a Formula: IF StartsWith([field],"IK) THEN ReplaceFirst([field],"IK","IKA" ELSE [field] ENDIF

BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@ryanzhang487  One way:

BS_THE_ANALYST_1-1678394918520.png

Using RegEx. Workflow attached

 

All the best,
BS

LinkedIN

Bulien
Labels