In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

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!

binuacs
21 - Polaris

@EstherT One way of doing this

 

binuacs
21 - Polaris

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

FinnCharlton
13 - Pulsar

@binuacs 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