Automatically select the table rows between two selected rows
Easiest thing you can do is properly name your variables and add comments.

Seeing things like this is very frustrating:

aIndex.push(k);
vMatched = k;


It's completely meaningless except to the developer who wrote it. It's a form of hungarian notation, except nothing is preventing you from making aIndex a String instead of an Array or vMatched and array instead of a var. (I'm assuming v is for var, which is also a hint this naming style isn't going to work here).

I'd expect for-loops to start using i not k. No need to declare it at the top either. You should always declare variables in the most local scope.

Here you're adding the numbers 0-a onto a list. You don't need to do that since you already have a. If you need to store the length at that time, you can.

for (var a = 0; a &lt; this.getView().byId("monTable").getItems().length; a++) {
    aIndex.push(a);
}


In your nested loops it looks like you are getting the indexes that match based on a criteria. You should really do this in a method, hopefully with comments to make it easier to read. You can use lambdas expressions if you're comfortable with them. However without better context I cannot provide a concrete alternative.

You should use a method for getting the min/max amounts from an array. Methods make everything easier to read &amp; easier to refactor.

You can use Arrays.sort() then take the first / last item of the array to get the min/max.