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
 divide all columns with a number
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ngkhw2

USA
1 Posts

Posted - 07/03/2010 :  4:07:40 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:
Hi Forum members,
I have 60data sheets open, I want to divide one column with fixed number. Instead of doing each data sheet, I would like to do for all 60 data sheets.Is their any code for it. Any help is appreciated.
Thanks
Naresh

AmandaLu

439 Posts

Posted - 07/05/2010 :  03:45:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear ngkhw2,

Suppose your data stores in worksheet1-60, Book1, and want to divide col(B) in each worksheet by 5, please run the following scripts:

loop(ii,1,3)
{
range DATA=[Book1]$(ii)!col(B);
DATA/=5;
}

If you use Origin 8.1, you can also use Batch Processing tool to do this.

First of all, create an Analysis Template using Set Column Value tool. Add a new column. Right click on this column and select Set Column Value. Specify the dividing formula and set Recalculate to Auto.



Save this worksheet as an .ogw file.

Secondly, select Batch Processing from File menu. This opens batchProcess dialog box. Specify settings like picture below.



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