Sumif-func
This function is used to calculate the sum of a (sub-)range of a vector that satisfies a specified condition. The sub-range can be discontiguous.
double Sumif(vector vd, string con$)
vd
con$
Return the sum of a sub-range in vector vd that satisfied the condition con$.
newbook; col(A) = data(1,32); col(B) = col(A); sumif(col(A),"col(A) > 5 && col(A) < 10")=;//should return 30
//simpler condition sumif(col(A), "<10")=;
Countif, Averageif