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

Alteryx Designer Desktop Discussions

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

split column contain number and strings

mhafizyi
6 - Meteoroid

Hi 

 

I have this column

123549 GREEN

125447 YELLOW BLACK

566822 BLACK YELLOW GREEN

 

Which tools should I use to transform it into this column

123549GREEN
125447 YELLOW BLACK
566822 BLACK YELLOW GREEN

 

Thanks.

4 REPLIES 4
LordNeilLord
15 - Aurora

Hey @mhafizyi

 

In the regex tool (in parse mode) try this: (\d*)\s(.*)

 

RegexParse.PNG@LordNeilLord

Part time Tableau, Part Time Alteryx. Full Time Awesome


Data Lover

andreea_aurica14
5 - Atom

Hello,

 

You can use Text to column tool to split into 2 columns and a Select tool to uncheck first field.

mhafizyi
6 - Meteoroid

Thank you LordNeilLord and andreea_aurica14. 

kapoorp
7 - Meteor

I am trying to split the below column into 3 - one containing text and others containing numeric part i.e. Date

 

Trip
TRIP TO NYC 11/26-11/30
TRIP W/MANAGER 02/03-02/08
TRIP WITH COLLEAGUE 09/25-09/27
TRIP W/MANAGER 01/16-01/25/19
HOTEL STAY IN GEORGIA
TRIP WITH CEO 09/17-09/21

 

Output:

DESTDT1DT2
TRIP TO NYC26-Nov30-Nov
TRIP W/MANAGER3-Feb8-Feb
TRIP WITH COLLEAGUE25-Sep27-Sep
HOTEL STAY IN GEORGIA  
Labels