In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Find words from fixed list in a string and return as output

EstherT
5 - Atom

Hi all,

 

I've been trying to find certain codes/characters (coming from a second file) in a string and returning those as output in a separate column.

 

For example

Input 1

IDField 1
12345

203,311,A00,A003

67890K00,365,230,A00,A002,210

 

Input 2 (list)

 

code
A00
A001
A002

A003

B00
E002
K00

 

Desired output:

 

IDField 1Output
12345

203,311,A00,A003

A00,A003
67890K00,365,230,A00,A002,210K00,A00,A002

 

Any suggestions on which tools I should use?

 

Many thanks!

6 REPLIES 6
FinnCharlton
13 - Pulsar

Hi @EstherT , this workflow should do the job. Hope it helps!

binu_acs
21 - Polaris

@EstherT One way of doing this

 

binu_acs
21 - Polaris

@FinnCharlton Are you facing any issues uploading the images of your workflow? I am getting some weird error

FinnCharlton
13 - Pulsar

@binu_acs yeah I am, never seen it before. Glad it's not just me

l_waldram
6 - Meteoroid

I found a previous thread with somebody with the same query, which was solved, linked here: 

 

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Find-multiple-values-in-string... 

nagakavyasri
12 - Quasar

Screenshot 2023-06-23 135053.png

Labels
Top Solution Authors