Hi arub,
How about the following snippet?wdeldup irng:=[Book1]1!A keep1st:=sum ow:=<new>; //Get sum of each group
for(ii=1; ii<=wks.col1.nRows; ii++) { //loop to pick up the desired group
if(wcol(1)[ii]$=="D") { //when the group is D
type -a $(col(B)[ii]);
Return;
}
}
To get the mean or standard deviation, you can run the same routine by replacing the
argument of the "keep1st" option to "average" or "sd" in the wdeldup x-function.
Hope this works, though not sure if it does in your old Origin 8.
--Hideo Fujii
OriginLab