Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Splitting Row Into Multiple

bsheremeta
7 - Meteor

I have bunch of rows that look like this:

 

"1050                                                                           United States"

or

"59495                                              California"

 

How can I obtain output that will look like this:

1050

United States

59495

California

 

I believe I need to use Text to Columns and split by whitespace but not sure if that works well. 

 

Thank you!

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @bsheremeta 

 

You can use data cleanse tool to remove duplicate spaces and then use text to column.

 

Workflow:

atcodedog05_0-1626449549849.png

Hope this helps : )

MichaelSu
Alteryx Alumni (Retired)

Hi @bsheremeta ,

 

In addition to @atcodedog05 's solution, here is another fun way to accomplish the above. 

 

MichaelSu_0-1626453760301.png

 

Thanks,

Mike

MichaelSu
Alteryx Alumni (Retired)

Also if you add '\s' into the RegEx expression you no longer need the data cleansing tool.

 

MichaelSu_0-1626453893273.png

 

Thanks,

Mike

Labels
Top Solution Authors