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
 Multiply each 4th column by a constant value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Draver

Germany
2 Posts

Posted - 12/01/2022 :  05:18:25 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2022b (64-bit) SR1
Operating System: Windows 10

Hello everybody,

I am facing a problem when treating a worksheet with a large number of columns. I am importing multiple files (each file has 4 columns) and merge them into one big worksheet, where each file produces a new set of 4 columns. So basically my column pattern looks like this:

A1 B1 C1 D1 A2 B2 C2 D2 A3 B3 C3 D3 .....

Principally I know how to mark a column and set new values to it. I was just wondering if there is a way to multiply each 4th column (so the D columns) by a constant number, without the need to mark each of those columns individually and type the same formula over and over again?

Or even one step further: Is it possible to perform such operation already during the import?

Thank you very much in advance for your thoughts.

Kind regards

Stefan

YimingChen

1696 Posts

Posted - 12/01/2022 :  08:27:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
In the import ASCII dialog, you can add a piece of script for each file import col(D) = 10*col(D).


James

Edited by - YimingChen on 12/01/2022 08:28:31 AM
Go to Top of Page

Draver

Germany
2 Posts

Posted - 12/02/2022 :  04:37:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear James,

thank you very much. This is very helpful!!

Do you know if there is a good guide, which shows what things can be achieved by script commands?

Best wishes,

Stefan
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