Or do it in two steps. Do a series of FINDRxx() [FINDREQ, FINDRGE, FINDRLT, etc.] functions that take (range, value) and return an index to the first element that satisfies the test. Those would be useful functions on their own, and used with the output of MAXR(), would give the index to the max value in the range. Maybe include a user-definable equality window for reals.