Here's another option:Create a worksheet called AveRh (not RhAve) and add (or rename) two columns in it so that one is called Averages and the other is called Final. Then, execute the following script:
count=0;
doc -cws rh;
loop(ii,1,count)
{
sum(rh$(ii)_val);
AveRh_Averages[ii]=sum.mean;
};
sum(AveRh_Averages);
AveRh_Final[1]=sum.mean;
To explain:
The first line initializes a variable called count to 0. The second line in this script then determines the number of worksheets in your project which begin with the letters rh and places that number into count. Lines 3 through 7 in the script then loop from 1 to the value in count, perform the sum function on each successive column called rh#_val (where # is a number), and then place that result into a new column (called Averages) in the worksheet called AveRh. Note: The averages worksheet can not be called RhAve in this case since it would be included in the count variable. The last two lines of script then take the average of the averages and report the final average to another column in AveRh (called Final).
[This message has been edited by rtoomey (edited 07-19-2000).]
[This message has been edited by rtoomey (edited 07-19-2000).]