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
 Calculations for Columns
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lucast005

Spain
5 Posts

Posted - 02/12/2014 :  09:40:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Pro 9.1 SR1
Operating System:Windows 7 Enterprise Service Pack 1.
We have some doubts about the best procedure to make two different calculations.
a) We need to make a calculation with the head of the columns named Parameters. The procedure is divide the full column by the Parameter Value. Question: How to do for all range of columns and not one by one.

b)We have two sheets with several columns each one. Question: We need to divide column by column the sheet 1 with the sheet 2: i mean: sheet 1 column i divided by sheet 2 column j and the result in a new sheet 3 (column z).

Thank you very much for your help
Lucas
University of Santiago de Compostela

lkb0221

China
497 Posts

Posted - 02/12/2014 :  2:04:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

For the first calculation, you can see the following example, using right click and "Set multiple Column Values..."


Zheng
OriginLab
Go to Top of Page

lkb0221

China
497 Posts

Posted - 02/12/2014 :  2:10:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
For the second calculation, still use the "Set Multiple column values...", see the example below:
Go to Top of Page

lucast005

Spain
5 Posts

Posted - 02/13/2014 :  06:25:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi lkb0221,
Thank you very much for your fast and fantastic answer.
Lucas
Go to Top of Page

lucast005

Spain
5 Posts

Posted - 02/14/2014 :  07:07:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Good day.
Thank you for the fast answer. I have a new question:
I was working with you procedure and its perfect.
I want to do but with several columns but i have to write for each column the script to calculate: is it possible to do automatically for all columns.
Thanks.
Lucas
Go to Top of Page

lkb0221

China
497 Posts

Posted - 02/14/2014 :  10:10:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, lucast005

The tool "Set Multiple Column Values" is desired to value multiple columns at one time, according to its name. In both cases I posted, you just need to highlight all the columns you need to calculate, open this dialog and right your code.

"i" means row number and "j" means column index number.

currently the tool only support set continuous columns. If your target columns are not continuous or in different sheets or books, you might need to use script to do automation process. Or, you can highlight the columns that with calculation, right click and select "Copy: Copy(Forluma)" and then paste to other columns.

Zheng
OriginLab

Edited by - lkb0221 on 02/14/2014 11:45:37 AM
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