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 for Programming
 LabTalk Forum
 data analysis

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
moondream Posted - 09/13/2002 : 11:07:13 AM
HI, all,

I have a set of worksheets with x and y column. I would like to add all the y column of different worksheets up. I know how to add them with same row. But could any one tell me how to add them with same x value? and make it to a new worksheets.

best regards,
moondream
2   L A T E S T    R E P L I E S    (Newest First)
moondream Posted - 09/14/2002 : 05:05:02 AM
Hi, easwar

Thank you so much. It is really what i want.

moondream
easwar Posted - 09/13/2002 : 2:56:31 PM
Hi moondream,

Say you have the following data:

Worksheet Data1 has:
A(X) B(Y)
1 10
2 20
3 30

Worksheet Data2 has:
A(X) B(Y)
2 20
3 30
5 40

and you set up your result worksheet as:

Worksheet Data3:
A(X) B(Y)
1
2
3
4

If you now execute the following line of command in your script window (menu command: Window->Script Window, type this line and then hit the Enter key)
data3_b = data1_b(data3_a)+data2_b(data3_a)

the result will be:

Worksheet Data3:
A(X) B(Y)
1 20
2 40
3 60
4 75

For value of x that are common to all worksheets, Origin just sums up the appropriate rows. For values of x that are not present in any worksheet, Origin gets the value for that worksheet by linear interpolation.

Hope this helps.

Easwar
OriginLab.




Edited by - easwar on 09/13/2002 2:57:32 PM

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