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
 Taking subgroups of data

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
nahuelv Posted - 06/21/2016 : 2:04:37 PM
Origin Ver. : 9.0 64 bits
Operating System:Windows 8

Hello dear members of the forum: I have a column with 64.000 numbers. So I want another column that has in the first row the sum between the elements 1 to 200, the second row the sum between the elements 201 to 400 and so on. Is it any fast way to do this??

Thank you
1   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 06/21/2016 : 2:51:30 PM
Hi nahuelv,

Origin has the following "Reduce Rows" function, but unfortunately it is available from Origin version 9.1.

1) Choose "Worksheet: Reduce Rows" menu with the options like:
       Reduce Method = Reduce N rows with merged values
       Merge Rows = 200
       Merge by = Sum


In an older version like yours, you can try the following:

1) In Set Column Values tool, use the following formula (when your data is in col(1), and output goes to col(2).)
       mod(i,200)==1?col(1)[i]:col(2)[i-1]+col(1)[i]


2) For the output column of 1), choose "Worksheet: Reduce Rows" menu with the following options:
       Reduce Method = Reduce N rows, then skip M rows
       Delete Rows = 199
       Skip Rows = 1


Hope this helps.

--Hideo Fujii
OriginLab


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