Alteryx Designer Desktop Discussions

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

Partial Join or Find & Replace with a partial string

snargaluff
6 - Meteoroid

Hi all,

 

I've been trying to search for an answer on this board for my issue, but ones that I felt were close to addressing did not fix.

Basically, I'm trying to find a text within one cell, locate it in another cell, and if it is included, to change or append the entire identifier to the original text. Otherwise, keep the original identifier.

 

Table 1:

REF 1
ATX-AC8
ABX-TZM
ASX-ADY
NZX:ATM
BBC:TYD
RKD:PTDS


Table 2:

REF 2
BRCNF ATX-AC8
APROPT ABX-TZM NZX:ATM
ADBCF ASX:ABC
ADMRF ASX-ADY
RKD:PTDS


What I would like my end result to be:

REF 1NEW_REF
ATX-AC8BRCNF ATX-AC8
ABX-TZMAPROPT ABX-TZM NZX:ATM
ASX-ADYADMRF ASX-ADY
NZX:ATMAPROPT ABX-TZM NZX:ATM
BBC:TYDBBC:TYD
RKD:PTDSRKD:PTDS

 

Hope that makes sense, appreciate the help

5 REPLIES 5
Qiu
20 - Arcturus
20 - Arcturus

@snargaluff 
Maybe something like this?
I am using append tool so hope your data is not so huge.

0211-snargaluff.PNG

atcodedog05
22 - Nova
22 - Nova

Hi @snargaluff 

 

Here is my take on it

 

atcodedog05_0-1644560905512.png

 

Hope this helps : )

 

snargaluff
6 - Meteoroid

Thank you! I will try this

snargaluff
6 - Meteoroid

Wow this is brilliant! I do have a large dataset, but I will try this out anyways!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @snargaluff 

Cheers and have a nice day!

Labels