Hi Lars,
One way to automatize this is to make an analysis template with recalculation settings.
Since the Worksheet Query tool is actually the "wextract" x-function, you can put this
as a part of recalculation such that (as in the screenshot below):
1) Add an extra column, F. Open its Set Column Value tool, and enter the following
command into the "Before Formula Scripts" box:
wextract iy:=[Book1]Sheet1!(1:end)
settings.stAlias.Cols:=5
settings.stAlias.AliasNames:=E
settings.stCondition.Condition:="E=1"
settings.cols:="0|1|2";
This command does the exactly the same in my previous post. No formula in the main box!
Set this Set Col Values tool's Recalculation mode to "Auto" (as the green lock icon tells).
Click OK to save.
(For the infomation about wextract, open the X-function help, and go to:
X-Function> Data Manipulation> Worksheet> wextract )
2) Also for columns D and E, set their Set Col Values tool's Recalculation mode to "Auto".
Try to update the data in columns C, or import data into column A, B, and C,
and observe that a new extracted worksheet is created.
3) Save the worksheet as an Analysis Template by "File: Save Workbook as Analysis Template" menu.
Now, you always open this template, and enter your new data, you get the result automatically.
--Hideo Fujii
OriginLab
P.S. Sorry for that there was a type in my previous post. The formula for column should read:
abs(col(C)[i]-col(C)[i-1])