For the first part about extracting subsets: you would have to simply create a method that will do that for you. You could use the Extends keyword to easily create a method that will return part of an array with the syntax myArray.getSubSet(1,5,2). Info on Extends: http://docs.xojo.com/index.php/Extends
In terms of getting the index of the cell in an array, if it's a one-dimensional array you can use array.indexOf(value) to have it return the index. If you want the index of the max value, theIndex = array.indexOf(max(array))