Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

separate columns and concatenate to old columns in table

Saraabdi955
8 - Asteroid

Hi all,

I need your help.

I have a table like T1:

 

 I want to separate column named "B1:B2" using regex to two different columns and concatenate new column "B1" to column "C1" and new column "B2" to column "C2" like this:

 

Thanks for helping me,

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @Saraabdi955 

 

So depending on your actual input, I have prepared two workflows that can help out.

 

Assuming that your input is this

 

AngelosPachis_0-1617524651255.png

 

then you can use a text to columns tools instead of a regex to split to new columns every time you meet the delimiter ":"

 

AngelosPachis_1-1617524719476.png

 

Then if your input actually have nulls stored as text, as shown below

 

AngelosPachis_2-1617524744876.png

 

then you should first replace those with empty cells (I did that with a multi-field formula) and then apply the same steps as in the previous workflow

AngelosPachis_3-1617524795389.png

 

Hope that helps.

 

Regards,

 

Angelos

 

Saraabdi955
8 - Asteroid

Hi @AngelosPachis 

That's right.

 

Thanks a lot Angelos.

Best Regards,

Labels
Top Solution Authors