The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Importing data with variable header length
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

meike_h

5 Posts

Posted - 07/21/2023 :  06:33:11 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2023

I would like to import files that generally have the same structure, but with a variable number of header lines. The final header line is always "[DATA]". Is there a way for Origin to recognize this? I tried using the option "By leading characters", but that didn't work unfortunately.

YimingChen

1592 Posts

Posted - 07/21/2023 :  08:46:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You could select menu Data->Connect to File->Text/CSV. Select the file, then in the Import Option dialog, set the block marker. See below:


James
Go to Top of Page

meike_h

5 Posts

Posted - 07/28/2023 :  04:21:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks for your reply. this would only allow me to import one file per workbook though, right? is there a way to do this where I can import several files at once into separate sheets in one workbook?
Go to Top of Page

YimingChen

1592 Posts

Posted - 07/28/2023 :  08:28:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, go to menu Data->Connect Multiple Files.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000