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
 Sum up Column B if in Column A a certain values ap
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Locardas

24 Posts

Posted - 02/05/2021 :  08:10:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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


Edited by - Locardas on 02/05/2021 08:11:20 AM

snowli

USA
1391 Posts

Posted - 02/05/2021 :  08:54:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

Locardas

24 Posts

Posted - 02/05/2021 :  09:28:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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 ?
Go to Top of Page

snowli

USA
1391 Posts

Posted - 02/05/2021 :  10:03:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Locardas

24 Posts

Posted - 02/05/2021 :  11:05:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thats great ! Thank you for your help !!!


Best regards,
Carlo

Edited by - Locardas on 02/05/2021 11:05:58 AM
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