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
 Dividing one col. with other col for all worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kngandhi75

USA
3 Posts

Posted - 10/15/2009 :  7:05:36 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 Everyone
I have around 100 worksheets in project. I want to divide column(F)with column(C) and put in column(G) I want to do same for all worksheets in the project. Is their any func. or tool.
Any help is appreciated.

Thanks
Naresh

larry_lan

China
Posts

Posted - 10/15/2009 :  11:02:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi:

Run this script in command window.
doc -e w {
	wks.addcol(G); // If there is already a column named G, delete this row.
	col(g) = col(f)/col(c);
}

Please read our LabTalk help for more about scripts.

Thanks
Larry
OriginLab Technical Services

Edited by - larry_lan on 10/15/2009 11:03:55 PM
Go to Top of Page

kngandhi75

USA
3 Posts

Posted - 10/16/2009 :  12:12:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for your help. Actually,I know this script. But, My question is: I have around 150 sheets in project, I want to apply for all the sheets at one time so that each sheet will divide col(g)=col(f)/col(c)project window rather than doing for each sheet.It would be great help. I appreciate for your help and time.
Thanks,
Naresh
quote:
Originally posted by larry_lan

Hi:

Run this script in command window.
doc -e w {
	wks.addcol(G); // If there is already a column named G, delete this row.
	col(g) = col(f)/col(c);
}

Please read our LabTalk help for more about scripts.

Thanks
Larry
OriginLab Technical Services

Go to Top of Page

larry_lan

China
Posts

Posted - 10/16/2009 :  12:50:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi:

The "doc -e w" command will execute the same script to all worksheets in the project, so, all your worksheets will be changed. There is no GUI to do that.

Thanks
Larry

Edited by - larry_lan on 10/16/2009 02:33:53 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