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
 Search the values of 2 columns in 2 other columns
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

amethyste

Germany
23 Posts

Posted - 02/21/2023 :  11:22:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

as the title says, i know that searching one column in another would be list(H,A) if we consider columns H and A.
and then to return the value of column E , we do E[list(H,A)].

I would like to search the values of two columns in two another columns and return the value of E.

I thought i would do E[list(H,A),list(I,B)] . By that i would like for it to search the values of column H in A and column I in B and return the corresponding E values.

It didn't work. any help with that? i would really appreciate it

snowli

USA
1381 Posts

Posted - 02/21/2023 :  11:42:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Could you try if E[join(list(H,A),list(I,B))] is what you want?

It joins list(H,A) and list(I,B) into one list
https://www.originlab.com/doc/en/LabTalk/ref/Join-func

Thanks, Snow
Go to Top of Page

amethyste

Germany
23 Posts

Posted - 02/21/2023 :  11:49:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you so much snow.
I would like for them to have the same length. join list makes joins two lists together right?
Go to Top of Page

snowli

USA
1381 Posts

Posted - 02/21/2023 :  11:59:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I am not exactly sure what you mean.
join just concatenates two datasets into one dataset.
If list(H,A) only returns 3 values, while list(I,B) returns 4 values, join(list(H,A), list(I,B)) will create a 7 value dataset.

Thanks, Snow
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