Alteryx Designer Desktop Discussions

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

Parse out every other value of concatenated string

atjhsieh
6 - Meteoroid

I have a dataset with a column that contains long strings of data in this format: 

 

ABC Inc. | 1234567 | DEF, co. | 8912345 | XYZ co ltd. | 6789123 | 

 

I would like to break this string up into two separate columns as follows: 

 

NameNumber
ABC Inc. | DEF, co. | XYZ co ltd.1234567 | 8912345 | 6789123

 

Any ideas on what tool/regex formula to use? 

6 REPLIES 6
usmanbashir
11 - Bolide

@atjhsieh - please see attached workflow. Hope this helps!

2024-04-03_14-38-43.png

 

cjaneczko
13 - Pulsar

Is it always only three groups or are the groupings variable?

atjhsieh
6 - Meteoroid

Thank you! Sorry, forgot to mention that sometimes the number is blank, but I still want to capture that in the number column. Example below: 

 

ABC Inc. | 1234567 | DEF, co. |  | XYZ co ltd. | 6789123 | 

 

NameNumber
ABC Inc. | DEF, co. | XYZ co ltd.1234567 |  | 6789123

 

Does that change anything? 

atjhsieh
6 - Meteoroid

The groupings are variable and sometimes the number is missing (but there should always be a name). I still want to capture the blank number as a segment in the number column so the name and number still line up. 

usmanbashir
11 - Bolide

@atjhsieh - here's round 2! This should accommodate for the variable groupings if there's a missing value as long as the pipes remain the same. 

atjhsieh
6 - Meteoroid

Thank you again, this was super helpful! 

Labels
Top Solution Authors