Dear All
----------------------- copy starting from the next line -----------------------
In the above toy example, I need to find out the average of highest two values and divide it by 2 (since best two is considered, if 'n', then divide it by 'n'). I have given the intended answer as variable "reqd_answer". For instance in first row, higher values are 9 and 6 and hence their average is 7.5. In case of 6, others are blank , so assuming next best value is 0, the average (6+0)/2=3. I tried to find using conditional argument but in vain. How to proceed with this?
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(var1 var2 var3) float reqd_answer 5 6 9 7.5 8 -4 34 21 -3 5 0 2.5 . . . . . 6 . 3 3 4 1 3.5 end
Comment