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
 Extracting data from huge dataset
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

indd27

Germany
2 Posts

Posted - 10/11/2016 :  06:55:32 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.9.00G SR1
Operating System:Windows 7

I have a set of 10 columns and about 80,000 rows. From these data I want to extract some useful information in the following way:
If a value in a given column is 133, the values of 3 other columns in the same row should be copied to columns 11 to 13. In best case starting from row 1 again, so that I have all data next to each other.
I think this should be possible, I just don't know how. Could you please give some advice? Thanks in advance.

Hideo Fujii

USA
1582 Posts

Posted - 10/11/2016 :  4:07:03 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi indd27,

I have tried to apply a filter(http://www.originlab.com/doc/Origin-Help/Wks-DataFilter) to a worksheet
with 10 columns and 80,000 rows. It was quick. You can copy-and-paste desired columns into new columns
in the same worksheet. The pasted data is the result of filtered out. (Then, you can turn off the filter.)

Another way is to use the Worksheet Query(http://www.originlab.com/doc/Origin-Help/Wks-Query),
but this cannot add the extract data to the same worksheet, so anyway you need to delete unnecessary
columns, then append the columns to the original worksheet.

Hope this helps.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 10/11/2016 4:08:36 PM
Go to Top of Page

indd27

Germany
2 Posts

Posted - 10/12/2016 :  11:53:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, the filter works great.
But now I got the next problem.
The values of one column are a time like shown here:

0d 02:42:32,70000

How can I convert this "text" to a number I can work with like seconds or minutes?

Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 10/12/2016 :  5:07:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi indd27,

It seems that column has 3 fields - number (days? indicated by 'd'), Time (hh:mm:ss format), and
another number separated by a comman(,).
To separate them, you can to the following steps:

1) Highlight the column, and copy it by CTRL-C.
2) Start Import Wizard (File: Import: Import Wizard menu)
3) In the first Source page, choose "Clipboard". Press "Next" 3 times to come to "Data Column" page.
4) Set the delimiter to Space, Comma, and Other=d.
Also, right-click the column header of Time field, and select "Set Format> Time" flyouts. Enter hh:mm:ss
in the Custom Time Format field, and press Apply button.
5) Finally "Finish" button to "import" the data to convert your data in separated fields.

After this process, you can merge original worksheet and this result sheet by "Worksheet: Append Worksheet" menu.

This worked for your data?

--Hideo Fujii
OriginLab
Go to Top of Page

snowli

USA
1379 Posts

Posted - 10/12/2016 :  5:09:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This blog may be helpful for you to convert text into Date and Time values.

http://blog.originlab.com/data-handling/extracting-dates-from-text-strings

Thanks, Snow
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