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

Text to Columns

Rayyyyy
6 - Meteoroid

Hi Everyone, 

 

I would like to ask for you help how I can transform this unformatted text from the PDF file into a 6 columns format below.  Thanks in advance!

 

Capture1.PNGCapture2.PNG

14 REPLIES 14
caltang
17 - Castor
17 - Castor

Can you provide the data please?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Rayyyyy
6 - Meteoroid

Hi @caltang 

 

Please refer to the attached file. Thanks in advance

caltang
17 - Castor
17 - Castor

Okay, I transcribed the data for you. 

 

To answer your query, you can use REGEX as I see your pattern is quite standard.

 

image.png

 

For the DR CR formatting, I will leave that to you to decide on what you want.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

For anyone curious, the REGEX is:

^(.*?) (.*?) (.*?) (.*?) (.*?) (.*?)$
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

Sorry, just noticed that your data exists in rows of 2s. PFA latest.

 

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

I think your sample data for Record #3 is missing its partner row lol.... nevermind, I've transcribed the data for you and added the Debit and Credit as well as a final touch. Hopefully this gives you an idea!

 

image.png

 

If the above solved your need, kindly like & mark as accepted solution so that you may help others find the solution more quickly + to close the thread as is. Thanks!

Best regards,
Calvin Tang
https://www.linkedin.com/in/calvintangkw/

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Rayyyyy
6 - Meteoroid

Hi @caltang 

 

Thanks for the solution it helped a lot. however I have one more concern,

 

there are transactions that have more than 2 lines. I need the two rows only and I don't need the rest of the lines and get to the next transaction. Please help. Thanks in advance! Please see attached file. 

caltang
17 - Castor
17 - Castor

Hey sure, I’m outside at the moment. I’ll look at it when I have time.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

@Rayyyyy sorry for the delay, PFA.

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors