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
 Reduce by date range
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

DerekK

USA
14 Posts

Posted - 08/16/2018 :  2:48:03 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello
I have two columns of data (dates and values) and I want to find a function or column formula to copy the dates and values for a specific range of dates into another set of columns. I have the start and stop dates as user parameters in the header of the column.

Thanks in advance, Derek


Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System: win10

Edited by - DerekK on 08/16/2018 3:17:31 PM

Hideo Fujii

USA
1582 Posts

Posted - 08/16/2018 :  4:32:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi DerekK,

You can use the Worksheet Query tool for that.

Regarding the query condition, I think you can write like:

A>date(col(A)[UP1]$) AND A<date(col(A)[UP2]$)

when your start and stop dates are in the user parameter, UP1 and UP2, respectively, assuming they are entered as a date string like 5/7/99.
See the detail of the Date function, which converts a date string to the internal Julian date, go to https://www.originlab.com/doc/LabTalk/ref/Date-func .

Regarding the destination of the output, you can set the same worksheet ("Extract to Specific Sheet"), and enter the new column number
at "Column From", in your case 3.

Hope this helps.

--Hideo Fujii
OriginLab

P.S. Note that if you extract the result into the same worksheet, recalculation cannot be set.
Also, even when you extract to a new sheet, by changing the user parameter cannot trigger the recalculation automatically.
To kick in manually, you can select "Change Parameters" to open the Worksheet Query dialog, and press OK to re-proceed.

Edited by - Hideo Fujii on 08/16/2018 4:59:40 PM
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