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
 All Forums
 Origin Forum
 Origin Forum
 Multiply each 4th column by a constant value

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Draver Posted - 12/01/2022 : 05:18:25 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
Draver Posted - 12/02/2022 : 04:37:01 AM
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
YimingChen Posted - 12/01/2022 : 08:27:42 AM
In the import ASCII dialog, you can add a piece of script for each file import col(D) = 10*col(D).


James

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000