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
 Sum up Column B if in Column A a certain values ap

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
Locardas Posted - 02/05/2021 : 08:10:50 AM
Operating System: 2018

Hello guys,

i want Origin to go row by row through column F and compare the numbers in it. If the same number appears in the respective column, the values of the corresponding 2nd column R should be summed up. At the end I would like to have something like a table in which for a certain number the sums are summurized.

Best regards,
Locardas

4   L A T E S T    R E P L I E S    (Newest First)
Locardas Posted - 02/05/2021 : 11:05:34 AM
Thats great ! Thank you for your help !!!


Best regards,
Carlo
snowli Posted - 02/05/2021 : 10:03:49 AM
You can choose Worksheet: Worksheet Query.

Only check F and R on the left side (columns to extract)
Enter F!=-- as condition.
Note: I am not sure if it works in your version. You may need to select F and move it to Alias table before using F in condition.

For Output
Set Recalculation mode: Auto.
Extract to New Worksheet.

There are also options to highlight those rows, etc. as output


Thanks, Snow
Locardas Posted - 02/05/2021 : 09:28:22 AM
quote:
Originally posted by snowli

Hello,

U can use either of the following
1. Select column R and choose Statistics: Descriptive statistics: Statistics on Columns.
On Input tab, set Group to be column F. On Quantities tab, make sure Sum is checked. U can uncheck those you don't want, e.g. mean, sd, etc.
Click OK.
The last sheet is created with group info. and sum.

2. Select column R and choose Analysis: Data Manipulation: Reduce by Duplicate X Data. Expand Input node. Click > next to X and change it to F. Set Replace Y with sum. Click > next to Output and choose New Sheet to get a new table.

Thanks, Snow




Thanks Snow, it worked perfectly ! Is there also the possibility to create a new table. In which the values from F form a column in which all the associated values of R are listed ?
snowli Posted - 02/05/2021 : 08:54:03 AM
Hello,

U can use either of the following
1. Select column R and choose Statistics: Descriptive statistics: Statistics on Columns.
On Input tab, set Group to be column F. On Quantities tab, make sure Sum is checked. U can uncheck those you don't want, e.g. mean, sd, etc.
Click OK.
The last sheet is created with group info. and sum.

2. Select column R and choose Analysis: Data Manipulation: Reduce by Duplicate X Data. Expand Input node. Click > next to X and change it to F. Set Replace Y with sum. Click > next to Output and choose New Sheet to get a new table.

Thanks, Snow


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