Hi,
I have written the scripts for a simple case:
Int ii=1;
Doc -ef LB
{
If(%H!="Results") // exclude the results sheet
{
Range rDevice = ["Results"]Sheet1!col("Device");
Range rVoc = ["Results"]Sheet1!col("Voc");
Range rlsc = ["Results"]Sheet1!col("Isc");
String strC$ = col(1)[C]$;
Double voc = col(1)[1];
Double lsc = col(2)[1];
rDevice[ii]$ = strC$;
rVoc[ii] = voc;
rlsc[ii]=lsc;
ii++;
}
}
The testing data and results are shown below:
![](http://www.originlab.com/ftp/forum_and_kbase/Images/post20160419.png)
You can modify your codes according to this example.
Regards!
Sean
OriginLab Tech.