Hi MISE,
The following code does the job for the above sample:range rA=col(A);
range rB=col(B);
range rC=col(C);
range rD=col(D);
nr=rC.getSize(); //number of rows
for(ii=1; ii<=nr; ii++) {
rD[ii]=rB[List(rC[ii],rA)]; //find and assign
}
You can learn LabTalk scripting from the following Guide/Tutorials:
http://www.originlab.com/doc/LabTalk/guide
Hope you enjoy to learn scripting.
--Hideo Fujii
OriginLab