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
 Taking subgroups of data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

nahuelv

Argentina
3 Posts

Posted - 06/21/2016 :  2:04:37 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Hideo Fujii

USA
1582 Posts

Posted - 06/21/2016 :  2:51:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Edited by - Hideo Fujii on 06/21/2016 5:08:14 PM
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