Alteryx Designer Desktop Discussions

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

Splitting data in one cell across multiple columns

Mamamia
6 - Meteoroid

Hi,

I need help separating data split in multiple rows in the same cell. Like below

Input:

 
Payee Reference
S0004023
TSK Property Management Limited
ST804
STARKEYS CHARTERED SURVEYORS
S0003906
Sheet Anchor Investments 2 Limited
LC095
LCP MANAGEMENT LTD

 

 

Desired Output:

 

Payee refPayee DescriptionSite CodePayee Name
S0004023TSK Property Management LimitedST804STARKEYS CHARTERED SURVEYORS
S0003906Sheet Anchor Investments 2 LimitedLC095LCP MANAGEMENT LTD

 

I will appreciate help on this. 

Thanks,
Kadmia

2 REPLIES 2
DataNath
17 - Castor

Hey @Mamamia, is it always the case that the data you want splitting will always be at a linebreak? If so, you can use the Text-to-Columns tool with \n as the delimiter, like so:

 

993.png

cjaneczko
13 - Pulsar

Provided the format is the same for every one of your records you can use the REGEX tool and set the configuration to parse into 4 columns using the following REGEX. 

 

 

^([A-Z]\d+)\n(.+)\n([A-Z0-9]+)\n(.+)$

 

image.pngimage.png

 

Labels