Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How do I split string text and numbers into different columns?

newalteryxuser435
6 - Meteoroid

Hello everyone, 

 

I am having a bit of trouble figuring out how to split text and numbers that are in the same column into a different column. 

 

An example:

New User 1.0 9.0 10.0 6.0 5.0

 

I want the split to look like

New User | 1.0 | 9.0 | 10.0 | 6.0 | 5.0

 

I have tried many ways but I think Text to Column is the one that will work but the delimiter I use (a space) gives me something like: New | User | 1.0 etc

 

Please let me know what I can do! Thanks

6 REPLIES 6
flying008
15 - Aurora

@newalteryxuser435 , Dear, hello!

 

1- you need regex to process space between letter first. (the expression like ([^\d])\s([^\d]) )

2- text to columns for split the string.

3- delete all null columns.

4- replace space to restore string.

 

录制_2022_04_20_09_54_11_713.gif

newalteryxuser435
6 - Meteoroid

@flying008 That regex statement is not giving me the correct output, another example: Data Model 2.0 1.0 5.0. It does not work 

flying008
15 - Aurora

@newalteryxuser435 , 

Dear, this looks fine on my way, please try again.

录制_2022_04_20_11_28_30_626.gif

Sebastiaandb
12 - Quasar

@flying008 what program do you use to make those .gifs? awesome!

flying008
15 - Aurora

@Sebastiaandb , oCam for you !

newalteryxuser435
6 - Meteoroid

It worked now haha! Thank you so much

Labels
Top Solution Authors