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
 multiple column value changing
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Fanning

UK
10 Posts

Posted - 06/27/2003 :  03:32:44 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

My data has hundreds of columns, and I need to subtract the value of the first row from all rows in every single column, in another word, to zero the starting point. I know I can do it one by one by using "set column value", but it is just too painful!

Could anyone help me to write a script for this, since I haven't got a clue. By the way, I am using origin 6.1.

Thanks a lot in advance.

Fanning

makub

Slovak Republic
2 Posts

Posted - 06/27/2003 :  07:18:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Finning,
have you tried to do it in Excel (by simple macro) and then to copy data into Origin?

Majo
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 06/27/2003 :  08:19:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Fanning,

It'd be much easier to use this simple LabTalk script...

loop (ii,1,wks.ncols) {
%(%H,ii)-=%(%H,ii,1);
};

Just copy/paste it to the script window, highlight and press enter.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 06/27/2003 08:21:12 AM
Go to Top of Page

Fanning

UK
10 Posts

Posted - 06/27/2003 :  08:38:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Mike

Thanks ever so much. It works. Such a script might be easy for you, but it's just a mission impossible for me. Many thanks to Majo too.

Cheers

Fanning
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