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
 Converting String to Integer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Shivavishnu

USA
4 Posts

Posted - 03/18/2018 :  6:26:36 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I'm a novice here, and could use some help. I have a column of string data that looks like:
time frame: 225.55695~225.6712
time frame: 31.1949~32.9995

I'd like to apply something to the F(x)= of an adjacent column that will calculate the duration from those strings. If anyone could point me in the right direction. It would be much appreciated.

Thanks,
Tharanee

Origin Ver. and Service Release (Select Help-->About Origin): Origin Student 2018 b9.5.0.193
Operating System: Windows 10 Home

cpyang

USA
1406 Posts

Posted - 03/18/2018 :  6:58:22 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Like this, assuming your text is in column A


value(token(A,2,"~")$) - value(token(A,1,"~")$)



and you can read more on this blog:

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

CP
Go to Top of Page

Shivavishnu

USA
4 Posts

Posted - 03/18/2018 :  7:56:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
That blog post is exactly what I need. Thank you!!!
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