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 a number by column values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

pink-lisa

UK
Posts

Posted - 01/15/2007 :  09:37:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version 7
Operating System:xp

hi

I have a spreadsheet of many columns of data. I would like to change the alternate columns:

1240 divided by the column value

how can I do this?

cheers

Lisa
xxx

Mike Buess

USA
3037 Posts

Posted - 01/15/2007 :  1:20:22 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Lisa,

The following script will change columns 1, 3, 5, ... to 1240 divided by same columns. Use ii=2; to change columns 2, 4, 6, ...

ii=1;
for(i=ii; i<=wks.ncols; i+=2) {
wcol(i) = 1240 / wcol(i);
};

Mike Buess
Origin WebRing Member
Go to Top of Page

pink-lisa

UK
Posts

Posted - 01/15/2007 :  1:34:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Cheers, Mike!
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