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

Convert .txt to excel

icruz23
5 - Atom

I have a txt file that is organized in batches as seen below (invoices cleared by certain checks)

 

icruz23_0-1583873729236.png

 

 

I am having a hard time converting to an excel workbook, i have tried various iteration of delimiters (",", "\t", etc) and i cant find an easy way to convert all the headers herein to the appropriate columns.

 

First time working with txt documents and don't necessarily know how to use the text to column tool to the best of its ability. Would really appreciate the help?

5 REPLIES 5
fmvizcaino
17 - Castor
17 - Castor

Hi @icruz23 ,

 

It really depends on how your txt file was built.

Would you be able to share a sample of your txt file? 

 

Best,

Fernando Vizcaino

icruz23
5 - Atom

attached is a sample. thank you for your quick reply @fmvizcaino 

fmvizcaino
17 - Castor
17 - Castor

Hi @icruz23 ,

 

Attached is a suggestion showing how to interpret your txt. Please insert your dataset in the same folder as the workflow is.

 

Best,

Fernando Vizcaino

danilang
19 - Altair
19 - Altair

Hi @icruz23 , @fmvizcaino 

 

Here's a different way to fill in the missing check header Info on the detail rows

w.png

Use a single multi-row tool to build a unique CheckNumber for all the rows in each check group.  Split the rows into initial rows, that have all the info to be copied and detailed row that don't.  Join on CheckNumber and take the common info from the right and the detailed info from the left.  Union both and sort. The advantage here is that you don't need a separate Multi-row tool for each of the common columns. 

 

Dan

 

 

icruz23
5 - Atom

Thank you so much!

 

Just so i can learn, what exactly is the Regex replace function doing? 

 

Or if you could just walk me through the formula tool portion of the solution?

 

Thanks again for your time!

Labels