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

How to correctly split column?

HW1
9 - Comet

I have a column with values as below

 

RecordIDValue
19Date Ref No Description PO Qty Price Total
2001/02/21 583772.0 Empty 1.5 Cubic Metres (FL) - General Waste 1 $46.70 $46.70
4105/02/21  586281.0 Empty 1100 Litre Bin - Paper Cardboard Recyclin 1 $5.18 $5.18
4209/02/21 586867.0 Empty 1100 Litre Bin - Paper Cardboard Recyclin 2 $5.18 $10.36
10611/02/21  588522.0 Empty 1100 Litre (Combo) - Container Recycling 10 $16.13 $161.30
16617/02/21  590708.1 Empty 240 Litre - Container Recycling 1 $10.01 $10.01
26020/02/21 592480.1 Empty 1100 Litre Bin - General Waste 1 $27.80 $27.80
48901/02/21 583881.2 Empty 660 Litre (Combo) - Container Recycling 7 $12.90 $90.30
55702/02/21 984332.0 Empty 1100 Litre Bin - Paper Cardboard Recyclin 1 $7.00 $7.00

 

I want it to be correctly split as:

 

RecordIDDateRef NoDescriptionPOQtyPriceTotal
201/02/2021583772Empty 1.5 Cubic Metres (FL) - General Waste  1$46.70$46.70
415/02/2021586281Empty 1100 Litre Bin - Paper Cardboard Recyclin  1$5.18$5.18
429/02/2021586867Empty 1100 Litre Bin - Paper Cardboard Recyclin  2$5.18$10.36
10611/02/2021588522Empty 1100 Litre (Combo) - Container Recycling 10$16.13$161.30
16617/02/2021590708.1Empty 240 Litre - Container Recycling 1$10.01$10.01
26020/02/2021592480.1Empty 1100 Litre Bin - General Waste 1$27.80$27.80
4891/02/2021583881.2Empty 660 Litre (Combo) - Container Recycling 7$12.90$90.30
5572/02/2021984332Empty 1100 Litre Bin - Paper Cardboard Recyclin  1$7.00$7.00

 

I am trying text to columns tool however, I am not able to parse it correctly.

 

Help will be much appreciated.

 

Thanks

1 REPLY 1
danilang
19 - Altair
19 - Altair

Hi @HW1 

 

You can do it with a couple of Regex Parse tools like this

 

danilang_0-1619001580887.png

The first one splits out Date, Ref No, Desc+PO+QTY, Price and Total.  The second one splits Desc+PO+QTY into Description and QTY.  The formula tool adds a blank PO field, since your data doesn't include any PO information

 

Dan

Labels
Top Solution Authors