Hi,
Labtalk can certainly do this, for example:
string strCond$ = "col(A) > 0 && col(A) < 15";
ave = averageif(col(B),strCond$);
[book1]sheet2!Cell(1,1)=ave;
Know more about averageif:
http://www.originlab.com/doc/LabTalk/ref/Averageif-func
Regards,
Yuki
OriginLab