Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Insert data into specific position within text file

James01
6 - Meteoroid

I have txt file with some sample data in it. I'm looking to take price from excel sheet and insert that price in my SampleData.txt file.

In SampleData.txt file, I have 10 rows. If row has a word "priceneeded", then insert the price in position 50-56 in that row.

 

I would appreciate if someone helps me on this.

 

Thank you.

3 REPLIES 3
DavidP
17 - Castor
17 - Castor

Something like this?

 

DavidP_0-1589325043512.png

 

rafalolbert
ACE Emeritus
ACE Emeritus

Hi @James01,

 

Here is my attempt to solve your problem:

 

img1.JPG

 

Main challenge was your txt file, i ignored the 1st row and used RegEx to parse columns (optional white chars).

 

This is a very simple solution that i hope will get you closer to your desired final solution.

 

Thanks,

Rafal

 

#Excuse me, do you speak Alteryx?

James01
6 - Meteoroid

Thanks for your help David.

Labels
Top Solution Authors