Alteryx Designer Desktop Discussions

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

How to split text file to multiple columns and get output in excel format

Sunithaprdp
8 - Asteroid

I would like to split the text file into multiple columns and the desired output should be in excel format. 

The characters in each column should be as such:

1313115168815151111713111242

 

Can anyone please help me with the same?

 

I am attaching a sample text file to this query.

 

Thanks in advance.

8 REPLIES 8
binuacs
20 - Arcturus

@Sunithaprdp one way of dong this with the Regex 

 

binuacs_0-1658122382471.png

 

Sunithaprdp
8 - Asteroid

@binuacs : Thank you so much , it worked!

Sunithaprdp
8 - Asteroid

@binuacs what if we have to split multiple text files at a time? Can we use Directory tool ? If so in the REGEX tool should we use Directory as the path?

binuacs
20 - Arcturus

@Sunithaprdp you need to combine all the text file then apply the Regex formula if you want to split all the files in same character length.

 

for combining the text files you can use the directory tool and a batch macro

Sunithaprdp
8 - Asteroid

@binuacs yes I could join them but however the output generated is giving me first two columns with a combined data. I would only require only from third column. What should we do in such cases?

Sunithaprdp_0-1658139794233.png

 

Sunithaprdp
8 - Asteroid

@binuacs : could solve it, Thanks!

binuacs
20 - Arcturus

@Sunithaprdp good to know that you solved it. please let me know if you see any assistance. 

Sunithaprdp
8 - Asteroid

@binuacs Sure, Thank you so much. 

Labels