Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
RÉSOLU

Text to Columns

Rayyyyy
Météoroïde

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 RÉPONSES 14
caltang
17 - Castor
17 - Castor

Can you provide the data please?

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Rayyyyy
Météoroïde

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
Météoroïde

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/
Sondage
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Étiquettes