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
 Execute F(x)=
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

pfornage

France
4 Posts

Posted - 02/07/2018 :  03:59:08 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin 2018 64 bits
Operating System: windows 7

Hi,

Is there a shortcut or a command to execute the forumla entered in F(x)= column header in one or multiple books?

I created a book template with fomulas on some columns.
I then import raw .txt file in this template, but I have to manually click into each F(x)= case for origin to execute the formula on the columns values.
Is there a way to avoid that ?

Thanks.
Patrick

arstern

USA
237 Posts

Posted - 02/07/2018 :  10:25:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Patrick,

You can select the F(X) box and then select Ctrl+Q which is somewhat quicker than right-clicking the F(X) box and selecting Open Dialog.

Here is a link to Origin's Hotkeys:
https://www.originlab.com/doc/Origin-Help/HotKey-in-Origin

-Aviel
OriginLab
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 02/08/2018 :  12:00:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Why not enter the needed formula into Fx and save the template?

CP
Go to Top of Page

pfornage

France
4 Posts

Posted - 02/08/2018 :  04:11:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I actually created a template.



And now the book after importing data into the template.
I want the values of column A to be 0.5 ; 1 ; 1.5 ; etc...
To do it, I have to manually click into the f(x)= cell, and press enter.
I would like the template to execute it automatically when importing data.



Thanks for your help!
Patrick
Go to Top of Page

snowli

USA
1385 Posts

Posted - 02/09/2018 :  3:39:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It looks all your column's calculation is on the column itself.

There are several methods to do this:
1. Choose Format: Worsheet...
On Script tab, enter
run -wu %H; //execute all column formula in active sheet of current workbook
Check "After Import" checkbox.

Then save the workbook as template and import data into it.

The script will be executed every time when data is imported.

2. Or in Import dialog, there is a Script After Each import node.
You can enter the above script so after import the script will be executed.
You can save such import dialog setting as a Dialog theme and in the future, load such import theme in the dialog.


Thanks, Snow
Go to Top of Page

pfornage

France
4 Posts

Posted - 02/12/2018 :  03:52:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Tried it this morning, it works.
Thanks a lot 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