Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Copy and insert rows until only individual strings remain in a cell

Carlos77
7 - Meteor

Hi all, 

I would need to copy entire rows (actual data has more columns than this example), whenever the column 'Tariff Code' contains more than one string of numbers, resulting in having just one string per row. Below example data how it should play out, it makes no difference to me if the commas will be left in the 'Tariff Code' -column after copying (or not):

 

Initial Data:

ShipmentTariff Code
A8803300099
B680221
C6403
D96081019
E290542
F590410
G6102309000, 6201930000
H6201930000
I6201930000, 6202990090
J6201930000, 6202990090
K48201000
L392620, 476726
M731700, 821410, 830590, 847290
N830590
O821410, 960810, 960820, 960840, 960920

 

Desired result:

ShipmentTariff Code
A8803300099
B680221
C6403
D96081019
E290542
F590410
G6102309000, 
G6201930000
H6201930000
I6201930000, 
I6202990090
J6201930000,
J6202990090
K48201000
L392620, 
L476726
M731700, 
M821410, 
M830590, 
M847290
N830590
O821410,
O960810, 
O960820, 
O960840, 
O960920

 

Thanks in advance!

 

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @Carlos77 you can use the Text to Columns tool with the configuration of Spilt to Rows with Delimeter , to achieve the desired results.

atcodedog05
22 - Nova
22 - Nova

Hi @Carlos77 

 

You can use text to column like below. Use space as a delimiter and split option as to rows

 

atcodedog05_0-1649407592928.png

 

 

Hope this helps : )

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Carlos77 

Cheers and have a nice day!

Labels