%B=%(%H,@Link,2)/* the link worksheet name */ /* the script in Stat.cnf file * save the worksheet's selection in * name.C1 and name.C2 */ for(j=1,i=%B.SELC1;i<=%B.SELC2;j+=1,i+=1) { sum(%(%B,i)); %(%H,1,j) = %(%B,@Col,i); col(mean)[j] = sum.mean; col(max)[j] = sum.max; col(min)[j] = sum.min; col(sd)[j] = sum.sd; dummy={1,99}; dummy=percentile(%(%B,i),dummy); col(P1)[j] = dummy[1]; col(P99)[j] = dummy[2]; } del dummy