Hi elnino
> if(col(C2)=12);countif(col(C15));else type -b "0";
You need the condition in the CountIf function as described in the document:
http://www.originlab.com/doc/LabTalk/ref/Countif-func
For example, you can use the function like in the sample below which counts for each cell in column B by searching the column A:
The following script is equivalent to the use ofabove Set Column Values toollike:for(ii=1; ii<=3; ii++) {
col(C)[ii]=COUNTIF(col(A),"col(A)==col(B)[ii]");
}
Hope this helps.
--Hideo Fujii
OriginLab